axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Troeger" <peter.troe...@hpi.uni-potsdam.de>
Subject WS-Addressing reference parameters
Date Tue, 14 Jun 2005 16:34:28 GMT
Hello list,

I am using the latest Apache WS-Addressing library together with Axis
1.2-RC3. I am trying to build a WSA endpoint reference, which contains
reference properties and parameters. The problem is that in the
resulting SOAP call the reference parameter header entry is missing.

Here is the Java code which generates the endpoint reference:

EndpointReference er = new
EndpointReference("http://localhost:4713/TestCaseServer");
SOAPHeaderElement refpaEntry = new
SOAPHeaderElement(testSvcNamespace,"theRefParam","theRefParamVal");
ReferenceParametersType refpa = new ReferenceParametersType(refpaEntry);
SOAPHeaderElement refprEntry = new
SOAPHeaderElement(testSvcNamespace,"theRefProp","theRefPropVal");
ReferencePropertiesType refpr = new ReferencePropertiesType(refprEntry);
er.setProperties(refpr);
er.setParameters(refpa);
ServiceInstance si = new ServiceInstanceImpl(er,testSvcNamespace);

The resulting SOAP header looks like this:

<soapenv:Header>
<wsa:MessageID
soapenv:mustUnderstand="0">uuid:9deb49f0-dce3-11d9-aff1-c98f087280e5</wsa:MessageID>
<wsa:To
soapenv:mustUnderstand="0">http://localhost:4713/TestCaseServer</wsa:To>
<wsa:From soapenv:mustUnderstand="0">
<Address
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</Address>
</wsa:From>
<ns1:theRefProp soapenv:mustUnderstand="0" xsi:type="xsd:string"
xmlns:ns1="mailto:peter.troeger@hpi.uni-potsdam.de">theRefPropVal</ns1:theRefProp>
</soapenv:Header>
<soapenv:Body>
...

Any ideas ?

Thank you and regards,
Peter Troeger.



Mime
View raw message