Re: SOAPACTIOn Missing!
From: Dino Chiesa [Microsoft] (dinoch_at_online.microsoft.com)
Date: 06/10/04
- Next message: Dino Chiesa [Microsoft]: "Re: wsdl.exe error"
- Previous message: Sahil Malik: "Re: Web service doesn't run"
- In reply to: Caesar: "Re: SOAPACTIOn Missing!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 09:55:13 -0400
The SOAP 1.1 specification says this about the HTTP SOAPAction header;
The SOAPAction HTTP request header field can be used to indicate the
intent of the SOAP HTTP request. The value is a URI identifying the intent.
SOAP places no restrictions on the format or specificity of the URI or that
it is resolvable. An HTTP client MUST use this header field when issuing a
SOAP HTTP Request.
The presence and content of the SOAPAction header field can be used by
servers such as firewalls to appropriately filter SOAP request messages in
HTTP. The header field value of empty string ("") means that the intent of
the SOAP message is provided by the HTTP Request-URI. No value means that
there is no indication of the intent of the message.
from http://www.oreillynet.com/pub/wlg/2331
"Caesar" <software@netiks.com> wrote in message
news:uWgwEqfTEHA.1472@TK2MSFTNGP12.phx.gbl...
> Thank you again for you concern,
> Actually i am not doubting interop between WebLogic and .net web services.
> I have to build a web service compatible with a web logic client, and i
> didn't develop the web logic client.
> I got the specs of this web logic client it is metnitionned in the specs
> that the HTTP header soap request from the client is as follows :
>
> POST /service1.asmx HTTP/1.0
> Content-Length: 405
> Content-Type: text/xml
> User-Agent: Java1.4.1_03
> Host: 213.175.167.69
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Connection: Keep-Alive
>
> I don't care if it was a weblogic client or any other client, that's not
the
> issue in here,
> the issue was and it still is , if the soapaction header (and not the
value)
> is needed for the .net web service to understand the request. I already
did
> set the RoutingStyle to requestelement, nevertheless the web service still
> needs the presence of the SOAPACTION header even if empty.
> I read the MSDN link you provided, even in there it's mentionned that
> SOAPACTION:"" (must be set to empty strings) when usiing RoutingStyle to
> request element.
> So from what i understand you always have to put SOAPACTION in the HTTP
> header whethere it has empty values or not.
>
>
> "Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message
> news:uu1KhMWTEHA.2336@TK2MSFTNGP10.phx.gbl...
> > Ok, I understand that SOAPAction is missing. That in itself is not a
> > problem.
> >
> > > And the question i wanted to ask , if .net web service does require
the
> > > existence of the field SOAPACTION (even like SOAPACTION:"") to work.
> >
> > It depends. If you have a RoutingStyle that directs the ASMX to route
the
> > incoming request based on the request element, you don't need
SoapAction.
> > Otherwise, you need SoapAction in the request.
> > see
> > http://msdn.microsoft.com/library/en-us/dnwebsrv/html/howwebmeth.asp
> >
> > When you said,
> > > I tested my web service with an http request without that soapaction
> > header
> > > it gave an exception, saying that soapaction is missing ?
> >
> > Does this mean the weblogic client is not working with the .NET service?
> or
> > did you build an http request without a soapaction, manually, not using
> > weblogic, and you think the same thing will apply to a weblogic client?
> I
> > am having trouble understanding the exact situation. Are you
> *suspecting*
> > there might be a problem with interop? Or are you *actually seeing* a
> > problem with interop?
> >
> > Have you connected a weblogic client to the service? If so, what
happens?
> >
> > -D
> >
> >
> > "Caesar" <software@netiks.com> wrote in message
> > news:%231iBzZSTEHA.240@TK2MSFTNGP11.phx.gbl...
> > > Hello
> > > The SOAPACTION header is missing in the HTTP request,
> > >
> > > the request is coming like this :
> > >
> > > POST /service1.asmx HTTP/1.0
> > > Content-Length: 405
> > > Content-Type: text/xml
> > > User-Agent: Java1.4.1_03
> > > Host: 213.175.167.69
> > > Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> > > Connection: Keep-Alive
> > >
> > > there shoulbe a header like
> > > SOAPACTION : ""
> > > But it's not there,
> > > The weblogic client when sending the request doesn't generate the
> > SOAPACTION
> > > header i don't know if that's somethin related to weblogic but my
> client
> > > doesn't generate this HTTP Header called SOAPACTION at all.
> > >
> > > And the question i wanted to ask , if .net web service does require
the
> > > existence of the field SOAPACTION (even like SOAPACTION:"") to work.
> > >
> > > I tested my web service with an http request without that soapaction
> > header
> > > it gave an exception, saying that soapaction is missing ?
> > >
> > > "Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in
message
> > > news:uE2jc3MTEHA.1168@TK2MSFTNGP11.phx.gbl...
> > > >
> > > > what's the problem you are seeing?
> > > > When the SOAPAction header is missing, does it cause a problem?
> > > >
> > > > You say you want to develop a service that is compatible with a
> weblogic
> > > > client. Have you connected a weblogic client to the service? What
> > > happens?
> > > >
> > > > -Dino
> > > >
> > > >
> > > > "Caesar" <software@netiks.com> wrote in message
> > > > news:e6LaQmGTEHA.3140@tk2msftngp13.phx.gbl...
> > > > > Hello, am trying to develop a web service that is compatible with
a
> > > > > weblogic client.
> > > > > When sniffing the packets i've noticed the absence
> > > > > of the
> > > > >
> > > > > SoapAction= ""
> > > > >
> > > > > in the header of the HTTP request !
> > > > > is that information needed to invoke the web service method ?
> > > > > if yes how can i solve this problem ?
> > > > > Thank you
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Dino Chiesa [Microsoft]: "Re: wsdl.exe error"
- Previous message: Sahil Malik: "Re: Web service doesn't run"
- In reply to: Caesar: "Re: SOAPACTIOn Missing!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|