[Xml-compile] Prefix question

Dan Payne dan101payne at gmail.com
Fri Jan 14 07:51:04 GMT 2011


Hi

I'm struggling with a problem where the XML generated by XML::Compile:WSDL11
(2.21) and XML::Compile::Cache (0.98) is not correctly handled by my web
service.

Specifically it generates:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelo=
pe/
">
<SOAP-ENV:Body>
<tns1:CreateOrder xmlns:tns1=3D"http://www.w3.org/2003/05/soap-envelope"
xmlns:tns=3D"http://www.cif.com/pgf/cif">
<tns:PartnerOrderMessage>
<tns:MessageType>CreatePartnerOrder</tns:MessageType>
</tns:PartnerOrderMessage>
</tns1:CreateOrder>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

Testing with SoapUI, I can see that the following works:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelo=
pe/
">
<SOAP-ENV:Body>
<tns1:CreateOrder xmlns:tns1=3D"http://www.w3.org/2003/05/soap-envelope"
xmlns:tns=3D"http://www.cif.com/pgf/cif">
<tns:PartnerOrderMessage>
<MessageType>CreatePartnerOrder</MessageType>
</tns:PartnerOrderMessage>
</tns1:CreateOrder>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

i.e. removing the prefix for "MessageType".

Is there a way remove the prefix for all child elements of
"PartnerOrderMessage"?

For information, I'm running a Glassfish 3 web service.

Thanks

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20110114/d0=
02a507/attachment.htm


More information about the Xml-compile mailing list