|
Hello,
I've deployed a service that receives a request of
my own complex type "order". This complex type contains normal types and other
complex types. My service should return this order to the client.
The request looks like this:
<SOAP-ENV:Body>
<ns1:receivePo xmlns:ns1="http://de.fhg.ipsi.oasys.businessScenario.types" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <order xmlns:ns2="http://de/fhg/ipsi/oasys/businessScenario/types" xsi:type="ns2:order"> <orderNumCustomer xsi:type="xsd:int">42</orderNumCustomer> <shipper xsi:type="ns2:company"> <zipCode xsi:type="xsd:int">0</zipCode> <name xsi:type="xsd:string"></name> <targetObjUriString xsi:type="xsd:string"></targetObjUriString> <street xsi:type="xsd:string"></street> <country xsi:type="xsd:string"></country> <urlString xsi:type="xsd:string"></urlString> <city xsi:type="xsd:string"></city> <phone xsi:type="xsd:string"></phone> <methodName xsi:type="xsd:string"> </methodName> </shipper> <estimatedDeliveryDate xsi:type="xsd:dateTime">2003-03-20T12:00:00.854Z</estimatedDeliveryDate> <orderNumVendor xsi:type="xsd:int">0</orderNumVendor> <status xsi:type="xsd:int">1</status> <orderDate xsi:type="xsd:dateTime">2003-02-15T00:00:56.823Z</orderDate> <goodsReceiver xsi:type="ns2:company"> <zipCode xsi:type="xsd:int">75646</zipCode> <name xsi:type="xsd:string">Bilstein GmbH</name> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> <street xsi:type="xsd:string">Shillerstr. 23</street> <country xsi:type="xsd:string">Germany</country> <urlString xsi:type="xsd:string">http://localhost:8080/bpws4j/s</urlString> <city xsi:type="xsd:string">Ulm</city> <phone xsi:type="xsd:string">0734-123-0</phone> <methodName xsi:type="xsd:string">xx</methodName> </goodsReceiver> <orderLines xmlns:ns3="http://xml.apache.org/xml-soap" xsi:type="ns3:Vector"> <item xsi:type="ns2:orderLineType"> <amount xsi:type="xsd:float">10.0</amount> <item xsi:type="ns2:itemType"> <volumeUnit xsi:type="xsd:string">m^3</volumeUnit> <weight xsi:type="xsd:float">2.8</weight> <volume xsi:type="xsd:float">3.2</volume> <itemDescription xsi:type="xsd:string">vibration damper c-class</itemDescription> <weightUnit xsi:type="xsd:string">kg</weightUnit> <pricePerUnit xsi:type="xsd:float">99.99</pricePerUnit> <itemUnit xsi:type="xsd:string">piece</itemUnit> <itemNum xsi:type="xsd:string">A-000001</itemNum> </item> <orderLineNum xsi:type="xsd:int">1</orderLineNum> </item> <item xsi:type="ns2:orderLineType"> <amount xsi:type="xsd:float">4.0</amount> <item xsi:type="ns2:itemType"> <volumeUnit xsi:type="xsd:string">m^3</volumeUnit> <weight xsi:type="xsd:float">6.4</weight> <volume xsi:type="xsd:float">4.9</volume> <itemDescription xsi:type="xsd:string">air condition e-class</itemDescription> <weightUnit xsi:type="xsd:string">kg</weightUnit> <pricePerUnit xsi:type="xsd:float">929.99</pricePerUnit> <itemUnit xsi:type="xsd:string">stk</itemUnit> <itemNum xsi:type="xsd:string">A-023449-E</itemNum> </item> <orderLineNum xsi:type="xsd:int">2</orderLineNum> </item> </orderLines> <customer xsi:type="ns2:company"> <zipCode xsi:type="xsd:int">75646</zipCode> <name xsi:type="xsd:string">Bilstein GmbH</name> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> <street xsi:type="xsd:string">Shillerstr. 23</street> <country xsi:type="xsd:string">Germany</country> <urlString xsi:type="xsd:string">http://localhost:8080/bpws4j/s</urlString> <city xsi:type="xsd:string">Ulm</city> <phone xsi:type="xsd:string">0734-123-0</phone> <methodName xsi:type="xsd:string">xx</methodName> </customer> <trackNum xsi:type="xsd:int">0</trackNum> <vendor xsi:type="ns2:company"> <zipCode xsi:type="xsd:int">87000</zipCode> <name xsi:type="xsd:string">FAG Kugelfischer</name> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> <street xsi:type="xsd:string">Goethestr. 10-15</street> <country xsi:type="xsd:string">Germany</country> <urlString xsi:type="xsd:string">xx</urlString> <city xsi:type="xsd:string">Augsburg</city> <phone xsi:type="xsd:string">0821-24498</phone> <methodName xsi:type="xsd:string">xx</methodName> </vendor> <preferredDeliveryDate xsi:type="xsd:dateTime">2003-03-20T12:00:00.854Z</preferredDeliveryDate> </order> </ns1:receivePo> </SOAP-ENV:Body> </SOAP-ENV:Envelope> In the SOAP Response are references used. My client
(is a BPEL process) have problems with these references. I have heard that it is
possible the force Axis to serialize the response similar to the above request
and NOT using references. This should be possible to set some options in the
wsdd. Because I'm not so familiar with these things I want to ask what I have to
do.
Thanks in advance!
Bye
Sven.
PS. here is the response using the
references:
<soapenv:Body>
<ns1:receivePoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://de.fhg.ipsi.oasys.businessScenario.types"> <receivePoReturn href=""/> </ns1:receivePoResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:order" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://de/fhg/ipsi/oasys/businessScenario/types"> <status xsi:type="xsd:int">1</status> <orderNumCustomer xsi:type="xsd:int">42</orderNumCustomer> <orderNumVendor xsi:type="xsd:int">0</orderNumVendor> <trackNum xsi:type="xsd:int">0</trackNum> <customer href=""/> <goodsReceiver href=""/> <vendor href=""/> <shipper href=""/> <orderDate xsi:type="xsd:dateTime">2003-02-15T00:00:56.823Z</orderDate> <preferredDeliveryDate xsi:type="xsd:dateTime">2003-03-20T12:00:00.854Z</preferredDeliveryDate> <estimatedDeliveryDate xsi:type="xsd:dateTime">2003-03-20T12:00:00.854Z</estimatedDeliveryDate> <orderLines href=""/> </multiRef> <multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Vector" xmlns:ns3="http://xml.apache.org/xml-soap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <item href=""/> <item href=""/> </multiRef> <multiRef id="id4" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:company" xmlns:ns4="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <name xsi:type="xsd:string"></name> <methodName xsi:type="xsd:string"> </methodName> <city xsi:type="xsd:string"></city> <street xsi:type="xsd:string"></street> <zipCode xsi:type="xsd:int">0</zipCode> <country xsi:type="xsd:string"></country> <phone xsi:type="xsd:string"></phone> <urlString xsi:type="xsd:string"></urlString> <targetObjUriString xsi:type="xsd:string"></targetObjUriString> </multiRef> <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:company" xmlns:ns5="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <name xsi:type="xsd:string">FAG Kugelfischer</name> <methodName xsi:type="xsd:string">xx</methodName> <city xsi:type="xsd:string">Augsburg</city> <street xsi:type="xsd:string">Goethestr. 10-15</street> <zipCode xsi:type="xsd:int">87000</zipCode> <country xsi:type="xsd:string">Germany</country> <phone xsi:type="xsd:string">0821-24498</phone> <urlString xsi:type="xsd:string">xx</urlString> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> </multiRef> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:company" xmlns:ns6="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <name xsi:type="xsd:string">Bilstein GmbH</name> <methodName xsi:type="xsd:string">xx</methodName> <city xsi:type="xsd:string">Ulm</city> <street xsi:type="xsd:string">Shillerstr. 23</street> <zipCode xsi:type="xsd:int">75646</zipCode> <country xsi:type="xsd:string">Germany</country> <phone xsi:type="xsd:string">0734-123-0</phone> <urlString xsi:type="xsd:string">http://localhost:8080/bpws4j/s</urlString> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> </multiRef> <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns7:company" xmlns:ns7="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <name xsi:type="xsd:string">Bilstein GmbH</name> <methodName xsi:type="xsd:string">xx</methodName> <city xsi:type="xsd:string">Ulm</city> <street xsi:type="xsd:string">Shillerstr. 23</street> <zipCode xsi:type="xsd:int">75646</zipCode> <country xsi:type="xsd:string">Germany</country> <phone xsi:type="xsd:string">0734-123-0</phone> <urlString xsi:type="xsd:string">http://localhost:8080/bpws4j/s</urlString> <targetObjUriString xsi:type="xsd:string">xx</targetObjUriString> </multiRef> <multiRef id="id7" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:orderLineType" xmlns:ns8="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <item href=""/> <orderLineNum xsi:type="xsd:int">2</orderLineNum> <amount xsi:type="xsd:float">4.0</amount> </multiRef> <multiRef id="id6" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:orderLineType" xmlns:ns9="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <item href=""/> <orderLineNum xsi:type="xsd:int">1</orderLineNum> <amount xsi:type="xsd:float">10.0</amount> </multiRef> <multiRef id="id9" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns10:itemType" xmlns:ns10="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <itemNum xsi:type="xsd:string">A-000001</itemNum> <itemDescription xsi:type="xsd:string">vibration damper c-class</itemDescription> <itemUnit xsi:type="xsd:string">piece</itemUnit> <volume xsi:type="xsd:float">3.2</volume> <volumeUnit xsi:type="xsd:string">m^3</volumeUnit> <weight xsi:type="xsd:float">2.8</weight> <weightUnit xsi:type="xsd:string">kg</weightUnit> <pricePerUnit xsi:type="xsd:float">99.99</pricePerUnit> </multiRef> <multiRef id="id8" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns11:itemType" xmlns:ns11="http://de/fhg/ipsi/oasys/businessScenario/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <itemNum xsi:type="xsd:string">A-023449-E</itemNum> <itemDescription xsi:type="xsd:string">air condition e-class</itemDescription> <itemUnit xsi:type="xsd:string">stk</itemUnit> <volume xsi:type="xsd:float">4.9</volume> <volumeUnit xsi:type="xsd:string">m^3</volumeUnit> <weight xsi:type="xsd:float">6.4</weight> <weightUnit xsi:type="xsd:string">kg</weightUnit> <pricePerUnit xsi:type="xsd:float">929.99</pricePerUnit> </multiRef> </soapenv:Body> |
