WS RetrieveIncident attachment href attribute user agent dependent -why?
I am experiencing some odd (to me) behavior using the SOAP WS.
When issuing a request via SoapUI the response of RetrieveIncident includes attachments the way I would expect it. Does mean in case of an attachment the element has a href attribute with the content id information to extract it out of the mime multipart response.
If I issue the very same request via a Java program using the Axis (1.4) library the attachment element in the response doesn't contain the href attribute.
After some comparison I figured out that this behavior is driven by the user agent information present in the HTTP request. If I set the user agent in the java program to the one SOAP UI communicates the href attribute is present.
My understanding of SwA would be that the href is the standard way to reference attachments. Can you explain to me what the reasoning is behind this behavior? Is my understanding of SwA incorrect?
My scenario is a java program which is interfacing to webservices in a generic way and HP SM is one use case. This means I expect webservices responses which are SOAP with Attachments to have a href attribute, containing the content id, on the element which describes the attachment in the SOAP response body.
To summarize: Why does the attachment element in the response have a href attribute containing the content id ONLY if the user agent in the request is NOT like "Axis*"?