List Info

Thread: SOAP encoding not picked up by wsdl2Java?




SOAP encoding not picked up by wsdl2Java?
user name
2006-03-16 12:37:41
 
Alvaro,
 
Many thanks for the input. I can compile Java stubs by stepping back to the standard Axis framework as you suggested. I know wsrf is a newer standard, but does it's wsdl2Java tool not support all of the older types that Axis dealt with? I noticed wsrf contained an axis 1.2.1 jar.. If this is a wrong use of wsrf, please briefly explain why as I'm fairly new to the webservices area.
 
Thanks again,
 
Martin.
-----Original Message-----
From: Alvaro Orus [mailto:alvaro.orusgmail.com]
Sent: 16 March 2006 11:41
To: wsrf-userws.apache.org
Subject: Re: SOAP encoding not picked up by wsdl2Java?

Why are you using wsrf to generate that service instead of the standard Axis framework? I don't see any resource property or stardard wsrf operation in your wsdl nor wsrf schema import in it.

On 3/16/06, Martin Dixon <magus.co.uk">martin.dixonmagus.co.uk > wrote:

Hello,

I am trying to generate Java stubs from a soap encoded wsdl - i am using wsrf-1.1 and running wsdl2Java from inside an ant script. I believe the wsdl is valid, but when i run wsdl2Java i get the following error:

generate:
 &nbsp;  [mkdir] Created dir: C:\wsrf-1.1\webapps\wsrf\_tmp_
 &nbsp; &nbsp; [copy] Copying 1 file to C:\wsrf-1.1\webapps\wsrf\_tmp_
[wsdl2Java] Processing WSDL file "C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl"...
[wsdl2Java] Retrieving document at 'C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl'.
[wsdl2Java] Generating XMLBeans for WSDL file "C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl"...
[wsdl2Java] C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl:0: warning: The WSDL C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl uses SOAP encoding. SOAP encoding is not compatible with literal XML Schema.

[wsdl2Java] Loading wsdl file C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl
[wsdl2Java] Processing 2 schema(s) in C:\wsrf-1.1\webapps\wsrf\_tmp_\wsuser.wsdl
[wsdl2Java] Processing WSRF WSDL port "wsuser.cfc"...
[wsdl2Java] java.lang.RuntimeException: WSDL input message named {http://webservices }isLoggedInRequest has more than one part - input messages must h

ve at most one part.
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.util.OperationInfo.<init&gt;(OperationInfo.java:71)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.GenerationUtils.getOperationInfoMap(GenerationUtils.java:61)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.Wsdl2Java.buildServiceProperties(Wsdl2Java.java:323)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.Wsdl2Java.processTemplates(Wsdl2Java.java:487)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.Wsdl2Java.processWsdlFile(Wsdl2Java.java:971)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.Wsdl2Java.generate(Wsdl2Java.java:185)
[wsdl2Java] &nbsp; &nbsp; at org.apache.ws.resource.tool.Wsdl2JavaTask.execute(Wsdl2JavaTask.java:228)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Task.perform(Task.java:364)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Target.execute(Target.java:301)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Target.performTasks(Target.java:328)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Main.runBuild(Main.java:632)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.Main.startAnt(Main.java:183)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[wsdl2Java] &nbsp; &nbsp; at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)


Here is the wsdl i'm using:

<?xml version ="1.0" encoding= "UTF-8"?>
<wsdl:definitions
 &nbsp; &nbsp; &nbsp;  targetNamespace=" http://webservices"
 &nbsp; &nbsp; &nbsp;  xmlns:impl=" http://webservices"
 &nbsp; &nbsp; &nbsp;  xmlns:intf=" http://webservices"
 &nbsp; &nbsp; &nbsp;  xmlns:apachesoap=" http://xml.apache.org/xml-soap"
 &nbsp; &nbsp; &nbsp;  xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
 &nbsp; &nbsp; &nbsp;  xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
 &nbsp; &nbsp; &nbsp;  xmlnssd=" http://www.w3.org/2001/XMLSchema"
 &nbsp; &nbsp; &nbsp;  xmlns:tns1=" http://rpc.xml.coldfusion"
 &nbsp; &nbsp; &nbsp;  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
 &nbsp; &nbsp; &nbsp;  xmlns=" http://schemas.xmlsoap.org/wsdl/">
 &nbsp; &nbsp; &nbsp;  <wsdl:types>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <schema
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  xmlns=" http://www.w3.org/2001/XMLSchema"
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  targetNamespace=" http://rpc.xml.coldfusion">
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <import namespace ="http://schemas.xmlsoap.org/soap/encoding/ "/>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <complexType name ="CFCInvocationException">
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <sequence/>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </complexType>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </schema>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <schema
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  xmlns=" http://www.w3.org/2001/XMLSchema"
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  targetNamespace=" http://xml.apache.org/xml-soap">
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <import namespace ="http://schemas.xmlsoap.org/soap/encoding/ "/>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <complexType name ="mapItem">
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <sequence>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <element name ="key" nillable= "true" type="xsd:string" />
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <element name ="value" nillable= "true" type="xsd:string" />
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </sequence>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </complexType>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <complexType name ="Map">
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <sequence>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <element name ="item" minOccurs= "0" maxOccurs="unbounded" type="apachesoap:mapItem" />

 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </sequence>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </complexType>
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  </schema>
 &nbsp; &nbsp; &nbsp;  </wsdl:types>
  <wsdl:message name="updateLogonToUnsecureResponse">
 &nbsp;  <wsdl:part name="updateLogonToUnsecureReturn" type ="xsd:boolean"/>
  </wsdl:message >
  <wsdl:message name="getDatasourcesRequest">
  </wsdl:message >
  <wsdl:message name="isLoggedInSecureResponse">
 &nbsp;  <wsdl:part name="isLoggedInSecureReturn" type ="xsd:boolean"/>
  </wsdl:message >
  <wsdl:message name="isLoggedInSecureRequest">
 &nbsp;  <wsdl:part name="serverName" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="domainKey" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="IETLogonSessionID" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="IP" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="userAgent" type ="xsd:string"/>
  </wsdl:message >
  <wsdl:message name="CFCInvocationException">
 &nbsp;  <wsdl:part name="fault" type ="tns1:CFCInvocationException"/>
  </wsdl:message >
  <wsdl:message name="setDatasourcesRequest">
 &nbsp;  <wsdl:part name="datasources" type ="apachesoap:Map"/>
  </wsdl:message >
  <wsdl:message name="isLoggedInResponse">
 &nbsp;  <wsdl:part name="isLoggedInReturn" type ="xsd:boolean"/>
  </wsdl:message >
  <wsdl:message name="setDatasourcesResponse">
  </wsdl:message >
  <wsdl:message name="getDatasourcesResponse">
 &nbsp;  <wsdl:part name="getDatasourcesReturn" type ="apachesoap:Map"/>
  </wsdl:message >
  <wsdl:message name="isLoggedInRequest">
 &nbsp;  <wsdl:part name="serverName" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="domainKey" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="IETLogonSessionID" type ="xsd:string"/>
 &nbsp;  <wsdl:part name="IP" type ="xsd:string"/>
 &nbsp; 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )