I don't know if it's standard or not.
My problem is that my AXIS2-service should be "digestable" from a .NET
application that requires the XML declaration. .NET based SOAP services
seems to include the XML declaration at top.

Does anyone know how to make AXIS2 include the XML declaration at top of
responses?


2007/10/17, Walker, Jeff <[EMAIL PROTECTED]>:
>
>  I too have noticed this. (I use Axis1 1.4, but from what you say, it also
> occurs in Axis2).
>
> My requests looks like:
>
> POST /fmr-pdk-pag-soaservices/services/PaGWebService HTTP/1.0
>
> Content-Type: text/xml; charset=utf-8
>
> Accept: application/soap+xml, application/dime, multipart/related, text/*
>
> User-Agent: Axis/1.3
>
> Host: 127.0.0.1:1234
>
> Cache-Control: no-cache
>
> Pragma: no-cache
>
> SOAPAction: ""
>
> Content-Length: 1731
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope ..some huge xml string..
>
>
>
> and my responses look like:
>
> HTTP/1.0 200 OK
>
> Content-Type: text/xml; charset=utf-8
>
> Content-Language: en-US
>
> Content-Length: 1482
>
> Set-Cookie: JSESSIONID=0000W_MwQ1tM9VkElguugWBApVz:-1; Path=/
>
> Date: Wed, 17 Oct 2007 14:05:32 GMT
>
> Server: WebSphere Application Server/6.1
>
> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>
> Cache-Control: no-cache="set-cookie, set-cookie2"
>
>
>
> <soapenv:Envelope ..some huge xml string..
>
>
>
> Notice how the request has the <?xml version="1.0" encoding="UTF-8"?> line
> but the response does not. Is this standard web service behavior?
> -jeff
>
>
>  ------------------------------
> *From:* Luposlip [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, October 17, 2007 4:27 AM
> *To:* [email protected]
> *Subject:* XML-declaration in WSDL2Java generated SOAP service
>
>  HI there gurus,
>
> I've generated a SOAP based service with WSDL2Java (AXIS2 1.2). The issue
> is that it doesn't include a XML declaration as the first line in the
> response documents.
> Could you please tell me how to do this?
>
> Thanks a bunch!
>
>

Reply via email to