• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Problem with WSDL publishing

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic