In response to my own post, it would appear that the Stub source has the
following:
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT);
but it needs:
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
What causes Axis to add DOCUMENT and not WRAPPED? Something in the WSDL I
assume?
John
On Wed, Jul 13, 2005 at 11:19:12AM +0100, John Baker wrote:
> Hi,
>
> If you point your browser at
> http://www.javasystemsolutions.com/serviceRequestConnector.wsdl then you'll
> be presented with a WSDL. I've used this to generate some stubs and have
> called the 'SubmitGeneralServiceRequest' method. Here is the message
> generated by Axis:
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://sc
> hemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" x
> mlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body>
>
> <SubmittedGeneralServiceRequest
> xmlns="http://www.caps-solutions.co.uk/schema/un
> iform/72b/servicerequest/sr/srtypes">
> <ServiceRequestIdentification>
> <AlternativeReferences/>
> </ServiceRequestIdentification>
> <ComplaintType>A</ComplaintType>
> <SiteLocation><Address>A</Address>
> <UPRN>B</UPRN></SiteLocation><NatureOfComplaint>B</NatureOfComplaint>
> <HowComplaintReceived>C</HowComplaintReceived><Complainants/>
> <AllocatedTo>D</AllocatedTo><ReceivedBy>E</ReceivedBy>
> <SubjectName>F</SubjectName><TradingAs>G</TradingAs>
> <AreaTeam>H</AreaTeam>
> </SubmittedGeneralServiceRequest>
> </soapenv:Body></soapenv:Envelope>
>
> What worries me is it seems to be 'missing' an element! I'd expect to see
> the <SubmitGeneralServiceRequest> element as the parent of
> <SubmittedGeneralServiceRequest>.
>
> Why is this not happening?
>
> Thanks,
>
>
> John