I need to produce the following XML request. Below is the request that is
being generated, and the WSDL I am using to create it. The attributes
Language, currencyType and OrderID are not being generated. I could get
them to generate as elements, but the service does not recognise it.
Any help appreciated, thanks.
Working XML request snippet
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<SOAP-ENV:Envelope xmlns:SOAPSDK1= "http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3= "http://schemas.xmlsoap .org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/">
<SOAP-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
<SOAPSDK4:Place Order xmlns:SOAPSDK4= "http://www.company.com/message/">
<Order language="en-USA" currency="en-USD" orderid="ShowSt orePlaceOrder#3 ">
<StoreID>9800 0</StoreID>
Not Working XML request snippet
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body>
< PlaceOrder xmlns="http://www. company.com/message/">
<Order>
<StoreID>9800 0</StoreID>
WSDL:snippet
<xsd:complexTyp e name="Order">
<xsd:simpleCont ent>
<xsd:extensio n base="xsd:decim al">
<xsd:attribut e name="Language" type="xsd:strin g" />
<xsd:attribut e name="CurrencyT ype" type="xsd:strin g" />
<xsd:attribut e name="OrderId" type="xsd:strin g" />
</xsd:extension>
</xsd:simpleConte nt>
<xsd:sequence >
<xsd:element name="StoreID" type="s0:StoreI D" />
being generated, and the WSDL I am using to create it. The attributes
Language, currencyType and OrderID are not being generated. I could get
them to generate as elements, but the service does not recognise it.
Any help appreciated, thanks.
Working XML request snippet
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<SOAP-ENV:Envelope xmlns:SOAPSDK1= "http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3= "http://schemas.xmlsoap .org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/">
<SOAP-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
<SOAPSDK4:Place Order xmlns:SOAPSDK4= "http://www.company.com/message/">
<Order language="en-USA" currency="en-USD" orderid="ShowSt orePlaceOrder#3 ">
<StoreID>9800 0</StoreID>
Not Working XML request snippet
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body>
< PlaceOrder xmlns="http://www. company.com/message/">
<Order>
<StoreID>9800 0</StoreID>
WSDL:snippet
<xsd:complexTyp e name="Order">
<xsd:simpleCont ent>
<xsd:extensio n base="xsd:decim al">
<xsd:attribut e name="Language" type="xsd:strin g" />
<xsd:attribut e name="CurrencyT ype" type="xsd:strin g" />
<xsd:attribut e name="OrderId" type="xsd:strin g" />
</xsd:extension>
</xsd:simpleConte nt>
<xsd:sequence >
<xsd:element name="StoreID" type="s0:StoreI D" />