Sorry for the long delay, but the Muse part of the project got sidetracked
for a bit.
Tried today to return an Element from my method and then to use .toXML() to
generate the reply. The reply sent to the client is the same, and the same
problem exists.
Here is the reply sent using .toXML()
<soapenv:Body>
<muse-op:createResponse
xmlns:muse-op="http://namespace/muse/filter/factory/factoryService"
xmlns:tns="http://axis2.platform.core.muse.apache.org">
<wsa:Address>http://9.26.109.208:9080/AutonomicFilterManager/services/FilterManager</wsa:Address>
<wsa:ReferenceParameters>
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-7</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</muse-op:createResponse>
</soapenv:Body>
The changes in naming come from having regenerated the project using TPTP,
and I had to change some names.
Doing a System.out on the Element returned by .toXML() it looks like this:
[wsa:EndpointReference: null]
so, I guess the problem is with the EPR.toXML() method.
Daniel Jemiolo wrote:
>
>
> looks like the EPR root element is being stripped out - as an experiment,
> try changing the method return type to Element and return the value of
> EndpointReference.toXML() and see if it works. If it does, we know we have
> a problem with the complex type serialization.
>
> Dan
>
>
>
> Bogdan Solomon <[EMAIL PROTECTED]> wrote on 06/07/2007 10:11:23 AM:
>
>>
>> Using Muse 2.2.0 I get the following response body to a request:
>>
>> <soapenv:Body>
>> <muse-op:CreateResponse
>> xmlns:muse-op="http://namespace/muse/filter/factory"
>> xmlns:tns="http://axis2.platform.core.muse.apache.org"><wsa:
>> Address>http://192.168.32.23:
>> 9082/FilterManagerMuse/services/FilterManager</wsa:Address>
>> <wsa:ReferenceParameters>
>> <muse-wsa:ResourceId
>> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:7ef949d0-
>> ac70-56e7-8f59-1d4c2781bfe3</muse-wsa:ResourceId>
>> </wsa:ReferenceParameters>
>> </muse-op:CreateResponse>
>> </soapenv:Body>
>>
>> Trying to create an EndpointReference from the XML directly results in a
>> NullPointerException as the wsa:Address is null according to the
>> constructor.
>>
>> I have solved the problem for the moment by reading the XML by hand and
>> generating an EPR from the address and then adding the parameter that I
> get,
>> but this is rather messy as I have to do something like this:
>>
>> xml.getNextSibling().getNextSibling().getFirstChild().
>> getNextSibling().getFirstChild()
>>
>> to obtain the reference parameter.
>>
>> So I was wondering if there is a problem with the way my EPR is being
>> returned or if it is invalid.
>>
>>
>
--
View this message in context:
http://www.nabble.com/Serialization-problem-tf2841378.html#a11580705
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]