I have some WSDL that imports some schemas. The schema includes elements
that are typed to WS-Addressing EndpointReferenceType. For example:
<xs:element name="messageSource" type="wsa:EndpointReferenceType">
<xs:annotation>
<xs:documentation>
The source of the message within the sender.
</xs:documentation>
</xs:annotation>
</xs:element>
The is a child of an element of type:
<xs:complexType name="InteractionKey">
<xs:sequence>
<xs:element ref="ps:messageSource" />
<xs:element ref="ps:messageSink" />
<xs:element ref="ps:interactionId" />
</xs:sequence>
</xs:complexType>
When I use wsdl2java to build the stubs and deploy the service, my test
message get deserialized on the server. However, the wsa namespace is not
defined. A section of the
deserialized XML looks like:
<ps:interactionKey
xmlns:ps="http://www.pasoa.org/schemas/version024/PStruct.xsd">
<ps:interactionId>
http://TestCase.commonservices/IdentifiedContentWithIPAandASA/urlAsserter
</ps:interactionId>
<ps:messageSource>
<wsa:Address>
http://messageSource.hursley.ibm.com:18080/axis/services/sourceApplication
</wsa:Address>
</ps:messageSource>
<ps:messageSink>
<wsa:Address>
http://messageSink.hursley.ibm.com:18080/axis/services/sinkApplication
</wsa:Address>
</ps:messageSink>
</ps:interactionKey>
Note that the ps namespace is defined on the interactionKey element and I
would have expected the wsa namespace to be defined on the messageSource
and messageSink elements so that the child QNames are correct.
Any idea what's going on ?
Regards,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]