Re: XML-declaration in WSDL2Java generated SOAP service

2007-10-18 Thread Luposlip
Ad. 1: HTTP 1.1.
Ad. 2: Ok, interesting!

On this project we use SOAP 1.1 and the code is based on .NET 1.1.

But I'm still curious about how to add the XML declaration. It seems that it
should still be possible somehow using SOAPMessage.WRITE_XML_DECLARATION,
but I don't know how to trigger it.

*/Henrik


2007/10/17, Walker, Jeff <[EMAIL PROTECTED]>:
>
>  Just ruling out a few things.
> 1. It still happens if you use Http 1.0 or Http 1.1.
> 2. It still happens if I deploy my service in WebSphere, which implements
> JAX-RPC and is not an Axis based web service.
>
> So 2 above that tells me it is not just Axis, but some sort of standard
> behavior. (It is possible that .NET may indeed be expecting the xml
> declaration on responses, but that it is a Microsoft anomaly and they
> shouldn't be expecting it. The other possibility is that Microsoft is indeed
> correct, and the Java world is lax in not providing the xml declaration on
> responses).
>
> The other train of thought I had is that this is SOAP 1.2 behavior, and I
> am using Soap 1.1.
> So, what version of .NET and SOAP are you using?
> -jeff
>
>  --
> *From:* Luposlip [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, October 17, 2007 10:39 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: XML-declaration in WSDL2Java generated SOAP service
>
>  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
> >
> >
> >
> > 
> >  >
> >
> >
> > 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=W_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"
> >
> >
> >
> >  >
> >
> >
> > Notice how the request has the 
> > 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:* axis-user@ws.apache.org
> > *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!
> >
> >
>


RE: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Walker, Jeff
Just ruling out a few things.
1. It still happens if you use Http 1.0 or Http 1.1.
2. It still happens if I deploy my service in WebSphere, which
implements JAX-RPC and is not an Axis based web service.
 
So 2 above that tells me it is not just Axis, but some sort of standard
behavior. (It is possible that .NET may indeed be expecting the xml
declaration on responses, but that it is a Microsoft anomaly and they
shouldn't be expecting it. The other possibility is that Microsoft is
indeed correct, and the Java world is lax in not providing the xml
declaration on responses).
 
The other train of thought I had is that this is SOAP 1.2 behavior, and
I am using Soap 1.1.
So, what version of .NET and SOAP are you using?
-jeff
 
  _  

From: Luposlip [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 10:39 AM
To: axis-user@ws.apache.org
Subject: Re: XML-declaration in WSDL2Java generated SOAP service



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

 


 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: axis-user@ws.apache.org
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! 




Re: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Luposlip
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
>
>
>
> 
> 
>
>
> 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=W_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"
>
>
>
> 
>
>
> Notice how the request has the  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:* axis-user@ws.apache.org
> *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!
>
>


RE: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Walker, Jeff
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

 



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: axis-user@ws.apache.org
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!