alka sharma

Greenhorn
+ Follow
since Feb 04, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by alka sharma

Hi,
I am using jwsdp for webservices. I obtain a wsdl file on running ant xrpcc-server command. I copy this file in build/WEB-INF folder and and a property wsdl.location=/WEB-INF/TestService1.wsdl in _config.properties file.
After Deploying the war file on WebLogic server, when i hit the url ... ?WSDL on the web browser (IE 6.0), it throws me an error -- reference to undeclared namespace 'wsdl' pointing towards
wsdl:arrayType = anyType[]
However, this error goes away if i interchange the positions of two schema tags in my types tag in wsdl file.
This looks strange since xml is not sequence dependent.
I tested the same on two other installations with the same version of jwsdp, but there the sequence comes out to be the same as required (opposite to mine) and hence the file gets published on hitting the url ... ?WSDL
Please help.
Here is my wsdl file...
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="TestService1" targetNamespace="http://dam.org/wsdl" xmlns:tns="http://dam.org/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns2="http://dam.org/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<schema targetNamespace="http://dam.org/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal" xmlns:tns="http://dam.org/types" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
<complexType name="WorkflowSerial">
<sequence>
<element name="opFlag" type="string"/>
<element name="actions" type="ns2:vector"/>
<element name="busObjTypeId" type="long"/>
<element name="status" type="long"/>
<element name="states" type="ns2:vector"/>
<element name="roleUsers" type="ns2:vector"/>
<element name="lockedBy" type="string"/></sequence></complexType>
<complexType name="WFException">
<complexContent>
<extension base="tns:UserException">
<sequence>
<element name="messages" type="string"/></sequence></extension></complexContent></complexType>
<complexType name="UserException">
<sequence>
<element name="maxSeverity" type="int"/>
<element name="errors" type="ns2:collection"/>
<element name="data" type="anyType"/>
<element name="message" type="string"/>
<element name="localizedMessage" type="string"/></sequence></complexType></schema>
<schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<import namespace="http://dam.org/types"/>
<complexType name="vector">
<complexContent>
<extension base="tns:list">
<sequence/></extension></complexContent></complexType>
<complexType name="list">
<complexContent>
<extension base="tns:collection">
<sequence/></extension></complexContent></complexType>
<complexType name="collection">
<complexContent>
<restriction base="soap-enc:Array">
<attribute ref="soap-enc:arrayType" wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema></types>
<message name="WorkFlowManagerIF_init"/>
<message name="WorkFlowManagerIF_initResponse"/>
<message name="WorkFlowManagerIF_wfGetDetailInstActionsOnly">
<part name="long_1" type="xsd:long"/>
<part name="String_2" type="xsd:string"/></message>
<message name="WorkFlowManagerIF_wfGetDetailInstActionsOnlyResponse">
<part name="result" type="ns2:WorkflowSerial"/></message>
<message name="WFException">
<part name="WFException" type="ns2:WFException"/></message>
<portType name="WorkFlowManagerIF">
<operation name="init" parameterOrder="">
<input message="tns:WorkFlowManagerIF_init"/>
<output message="tns:WorkFlowManagerIF_initResponse"/></operation>
<operation name="wfGetDetailInstActionsOnly" parameterOrder="long_1 String_2">
<input message="tns:WorkFlowManagerIF_wfGetDetailInstActionsOnly"/>
<output message="tns:WorkFlowManagerIF_wfGetDetailInstActionsOnlyResponse"/>
<fault name="WFException" message="tns:WFException"/></operation></portType>
<binding name="WorkFlowManagerIFBinding" type="tns:WorkFlowManagerIF">
<operation name="init">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://dam.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://dam.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<operation name="wfGetDetailInstActionsOnly">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://dam.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://dam.org/wsdl"/></output>
<fault name="WFException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://dam.org/wsdl"/></fault>
<soap peration soapAction=""/></operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
<service name="TestService1">
<port name="WorkFlowManagerIFPort" binding="tns:WorkFlowManagerIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
19 years ago
Hi,
I am using jwsdp 1.0_01 and Weblogic 6.1 sp3. I am generating a wsdl file from jwsdp (using ant), passing java interface and implementation file as input.
The problem is, I have a function which returns array of integers (int[]). This is converted to ArrayOfint type by xrpcc while generating wsdl file. When hit the url ...?WSDL on web browser(IE 6.0), it gives an error
Reference to undeclared namespace prefix: 'wsdl'. Error processing resource 'http://192.168.5.18:8001/jaxrpc-hello/jaxrpc?WSDL'. Line 30, Position 149
<attribute xmlns:tns="http://hello.org/types" xmlns="http://www.w3.org/2001/XMLSchema" ref="soap-enc:arrayType" wsdl:arrayType="int[]"/></restriction></complexContent></complexType></schema></types>

Anyways when i call this function through a client it gives me correct results.
Here is the wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloWorld" targetNamespace="http://hello.org/wsdl" xmlns:tns="http://hello.org/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal" xmlns:ns3="http://hello.org/types">
<types>
<schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<import namespace="http://hello.org/types"/>
<complexType name="vector">
<complexContent>
<extension base="tns:list">
<sequence/></extension></complexContent></complexType>
<complexType name="list">
<complexContent>
<extension base="tns:collection">
<sequence/></extension></complexContent></complexType>
<complexType name="collection">
<complexContent>
<restriction base="soap-enc:Array">
<attribute ref="soap-enc:arrayType" wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema>
<schema targetNamespace="http://hello.org/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://hello.org/types" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
<complexType name="Empl">
<sequence>
<element name="empno" type="int"/>
<element name="test" type="tns:ArrayOfint"/>
<element name="ename" type="string"/></sequence></complexType>
<complexType name="ArrayOfint">
<complexContent>
<restriction base="soap-enc:Array">
<attribute ref="soap-enc:arrayType" wsdl:arrayType="int[]"/></restriction></complexContent></complexType></schema></types>
<message name="HelloIF_getTest">
<part name="Empl_1" type="ns3:Empl"/></message>
<message name="HelloIF_getTestResponse">
<part name="result" type="ns3:ArrayOfint"/></message>
<message name="HelloIF_getVector"/>
<message name="HelloIF_getVectorResponse">
<part name="result" type="ns2:vector"/></message>
<message name="HelloIF_sayHello">
<part name="String_1" type="xsd:string"/></message>
<message name="HelloIF_sayHelloResponse">
<part name="result" type="xsd:string"/></message>
<message name="HelloIF_setVector">
<part name="Empl_1" type="ns3:Empl"/></message>
<message name="HelloIF_setVectorResponse"/>
<message name="HelloIF_testTS">
<part name="String_1" type="xsd:string"/></message>
<message name="HelloIF_testTSResponse">
<part name="result" type="xsd:string"/></message>
<portType name="HelloIF">
<operation name="getTest" parameterOrder="Empl_1">
<input message="tns:HelloIF_getTest"/>
<output message="tns:HelloIF_getTestResponse"/></operation>
<operation name="getVector" parameterOrder="">
<input message="tns:HelloIF_getVector"/>
<output message="tns:HelloIF_getVectorResponse"/></operation>
<operation name="sayHello" parameterOrder="String_1">
<input message="tns:HelloIF_sayHello"/>
<output message="tns:HelloIF_sayHelloResponse"/></operation>
<operation name="setVector" parameterOrder="Empl_1">
<input message="tns:HelloIF_setVector"/>
<output message="tns:HelloIF_setVectorResponse"/></operation>
<operation name="testTS" parameterOrder="String_1">
<input message="tns:HelloIF_testTS"/>
<output message="tns:HelloIF_testTSResponse"/></operation></portType>
<binding name="HelloIFBinding" type="tns:HelloIF">
<operation name="getTest">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<operation name="getVector">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<operation name="sayHello">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<operation name="setVector">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<operation name="testTS">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://hello.org/wsdl"/></output>
<soap peration soapAction=""/></operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
<service name="HelloWorld">
<port name="HelloIFPort" binding="tns:HelloIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
19 years ago