You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Oliver Hirschi <o....@bluewin.ch> on 2008/02/08 11:58:46 UTC
[Axis2] wsdl2java: return value of call
Hi there...
I try to call a soap-interface (of the indesignserver) with a
java-client. I generated the client-stub due to the below attached WSDL
with wsdl2java of the axis2 version 1.3.
The call works perfectly with the wsdl2java-generated java-objects, but
I did not get the return-value (scriptResult; in the example below it
is -262). The scriptResult object after the call is ever NULL.
I attached the soap-return, the coresponding soap-call and the wsdl
below...
Can anyone help me?
Thanks & kind regards,
Oliver Hirschi
---------------------------------------------------------
SOAP-RETURN:
---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:IDSP="http://ns.adobe.com/InDesign/soap/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<IDSP:RunScriptResult>
<errorNumber>0</errorNumber>
<scriptResult>
<data xsi:type="xsd:string">-262</data>
</scriptResult>
</IDSP:RunScriptResult>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
---------------------------------------------------------
SOAP-CALL:
---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://192.168.0.7:18383</wsa:To>
<wsa:MessageID>urn:uuid:91E1C3B822F0F4F48A1202465390282</wsa:MessageID>
<wsa:Action>""</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns1:RunScript xmlns:ns1="http://ns.adobe.com/InDesign/soap/">
<runScriptParameters>
<scriptText/>
<scriptLanguage>javascript</scriptLanguage>
<scriptFile>C:\Programme\Adobe\Adobe InDesign Server
CS2\Scripts\CBPAdapterDoProcess.jsx</scriptFile>
<scriptArgs>
<name>xml-input</name>
<value>\\192.168.0.7\Work\CPSRemote\0\test.xml</value>
</scriptArgs>
<scriptArgs>
<name>output-file</name>
<value>\\192.168.0.7\Work\CPSRemote\0\123.pdf</value>
</scriptArgs>
</runScriptParameters>
</ns1:RunScript>
</soapenv:Body>
</soapenv:Envelope>
---------------------------------------------------------
WSDL:
---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Service"
targetNamespace="http://localhost:80/Service.wsdl"
xmlns:tns="http://localhost:80/Service.wsdl"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="http://ns.adobe.com/InDesign/soap/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<simpleType name="Enumeration">
<restriction base="xsd:long"/>
</simpleType>
<simpleType name="Unit">
<restriction base="xsd:double"/>
</simpleType>
<complexType name="IDSP-ScriptArg">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="RunScriptParameters">
<sequence>
<element name="scriptText" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
<element name="scriptLanguage" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
<element name="scriptFile" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
<element name="scriptArgs" type="IDSP:IDSP-ScriptArg" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="Data">
<sequence>
<element name="data" type="xsd:anyType" minOccurs="1" maxOccurs="1"
nillable="false"/>
</sequence>
</complexType>
<complexType name="List">
<sequence>
<element name="item" type="IDSP:Data" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</sequence>
</complexType>
<complexType name="Object">
<sequence>
<element name="specifierData" type="xsd:anyType" minOccurs="1"
maxOccurs="1" nillable="false"/>
<element name="objectType" type="xsd:unsignedLong" minOccurs="1"
maxOccurs="1"/>
<element name="specifierForm" type="xsd:unsignedLong" minOccurs="1"
maxOccurs="1"/>
<element name="start" type="IDSP:Object" minOccurs="0" maxOccurs="1"
nillable="true"/>
<element name="end" type="IDSP:Object" minOccurs="0" maxOccurs="1"
nillable="true"/>
</sequence>
</complexType>
<complexType name="ObjectList">
<sequence>
<element name="item" type="IDSP:Object" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</sequence>
</complexType>
<complexType name="Field">
<sequence>
<element name="id" type="xsd:unsignedLong" minOccurs="1"
maxOccurs="1"/>
<element name="data" type="IDSP:Data" minOccurs="0" maxOccurs="1"
nillable="true"/>
</sequence>
</complexType>
<complexType name="Record">
<sequence>
<element name="item" type="IDSP:Field" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</sequence>
</complexType>
<!-- operation request element -->
<element name="RunScript">
<complexType>
<sequence>
<element name="runScriptParameters" type="IDSP:RunScriptParameters"
minOccurs="0" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
<!-- operation response element -->
<element name="RunScriptResult">
<complexType>
<sequence>
<element name="errorNumber" type="xsd:int" minOccurs="1"
maxOccurs="1"/>
<element name="errorString" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
<element name="scriptResult" type="IDSP:Data" minOccurs="0"
maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="RunScriptRequest">
<part name="parameters" element="IDSP:RunScript"/>
</message>
<message name="RunScriptResult">
<part name="parameters" element="IDSP:RunScriptResult"/>
</message>
<portType name="ServicePortType">
<operation name="RunScript">
<documentation>Service definition of function
IDSP__RunScript</documentation>
<input message="tns:RunScriptRequest"/>
<output message="tns:RunScriptResult"/>
</operation>
</portType>
<binding name="Service" type="tns:ServicePortType">
<SOAP:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="RunScript">
<SOAP:operation soapAction=""/>
<input>
<SOAP:body use="literal"/>
</input>
<output>
<SOAP:body use="literal"/>
</output>
</operation>
</binding>
<service name="Service">
<documentation>gSOAP 2.7.0c generated service
definition</documentation>
<port name="Service" binding="tns:Service">
<SOAP:address location="http://localhost:80"/>
</port>
</service>
</definitions>
---------------------------------------------------------
--
Oliver Hirschi
http://www.FamilyHirschi.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org