This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem with WSDL publishing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with WSDL publishing" Watch "Problem with WSDL publishing" New topic

Problem with WSDL publishing

alka sharma

Joined: Feb 04, 2003
Posts: 2
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 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="" xmlns:tns="" xmlns="" xmlns:soap="" xmlns:ns2="" xmlns:xsd="">
<schema targetNamespace="" xmlns:xsi="" xmlns:ns2="" xmlns:tns="" xmlns:soap-enc="" xmlns:wsdl="" xmlns="">
<import namespace=""/>
<import namespace=""/>
<complexType name="WorkflowSerial">
<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">
<extension base="tns:UserException">
<element name="messages" type="string"/></sequence></extension></complexContent></complexType>
<complexType name="UserException">
<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="" xmlns:xsi="" xmlns:tns="" xmlns:soap-enc="" xmlns:wsdl="" xmlns="">
<import namespace=""/>
<import namespace=""/>
<complexType name="vector">
<extension base="tns:list">
<complexType name="list">
<extension base="tns:collection">
<complexType name="collection">
<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">
<soap:body encodingStyle="" use="encoded" namespace=""/></input>
<soap:body encodingStyle="" use="encoded" namespace=""/></output>
<soap peration soapAction=""/></operation>
<operation name="wfGetDetailInstActionsOnly">
<soap:body encodingStyle="" use="encoded" namespace=""/></input>
<soap:body encodingStyle="" use="encoded" namespace=""/></output>
<fault name="WFException">
<soap:fault encodingStyle="" use="encoded" namespace=""/></fault>
<soap peration soapAction=""/></operation>
<soap:binding transport="" style="rpc"/></binding>
<service name="TestService1">
<port name="WorkFlowManagerIFPort" binding="tns:WorkFlowManagerIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
It is sorta covered in the JavaRanch Style Guide.
subject: Problem with WSDL publishing