Hi,
I have a working client connection to a service provided by a
third-party. However, we have no control over the remote server so I
have been trying to write a stub service of our own for testing
purposes. I have done this before with other software but this is the
first time I have tried with Axis (1.4).
The type of xml I am after in the response is:
<ng3:GET_WORKS_ORDERS_LIST
xmlns:ng3="http://www.abc.com/GetWorksOrdersListResponse"
xmlns:tns1="http://www.abc.com/returnedmessages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ng3:WorksOrdersListResponse>
<ng3:APIReturn>SUCCESS</ng3:APIReturn>
<ng3:APIMessages/>
<ng3:WorksOrdersList/>
</ng3:WorksOrdersListResponse>
<tns1:MESSAGE_RETURN_INFO>
<tns1:SUCCESS_FLAG>TRUE</tns1:SUCCESS_FLAG>
<tns1:MESSAGES_EXIST>FALSE</tns1:MESSAGES_EXIST>
<tns1:RETURNED_MESSAGES/>
</tns1:MESSAGE_RETURN_INFO>
</ng3:GET_WORKS_ORDERS_LIST>
But what I get is:
<WorksOrdersListRequestResponse
xmlns="http://www.abc.com/GET_WORKS_ORDERS_LIST">
<ns1:GET_WORKS_ORDERS_LIST
xmlns:ns1="http://www.abc.com/GetWorksOrdersListResponse">
<ns1:WorksOrdersListResponse>
<ns1:APIReturn>SUCCESS</ns1:APIReturn>
<ns1:APIMessages/>
<ns1:WorksOrdersList/>
</ns1:WorksOrdersListResponse>
<ns2:MESSAGE_RETURN_INFO
xmlns:ns2="http://www.abc.com/returnedmessages">
<ns2:SUCCESS_FLAG>TRUE</ns2:SUCCESS_FLAG>
<ns2:MESSAGES_EXIST>FALSE</ns2:MESSAGES_EXIST>
<ns2:RETURNED_MESSAGES/>
</ns2:MESSAGE_RETURN_INFO>
</ns1:GET_WORKS_ORDERS_LIST>
</WorksOrdersListRequestResponse>
Can anyone help in the configuration I need to get rid of the extra
nesting of the <WorksOrdersListRequestReturn> tag as the client parsing
fails immediately?
I have tried numerous parameter and operation settings in the server
wsdd file but to no avail.
Thanks
Mark
Connaught wins RoSPA Gold Award for fifth year running
Considerate Contractor Gold Award in 2006
Partnering Contractor of the Year Award in 2005
Please visit our website to see a full list of Connaught's Registered Companies
www.connaught.plc.uk/Investors/Registered-Companies
Disclaimer:
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you received this in error, please contact
the sender and delete this message.
Connaught plc, Head Office 01392 444546