You set SOAPAction to "" only if the service is not expecting anything in
the SOAPAction.  Many services expect data in this property to do things
like forwarding the request to a second URL etc.  It's an implementation
choice so the service's documentation needs to be reviewed to determine how
to set this.


Carson

__________________________________________________________

Carson Hager
Cynergy Systems, Inc.
Sybase Enterprise Application Studio Consulting and Training
http://www.cynergysystems.com



> -----Original Message-----
> From: Ken Crismon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 12:24 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Fault Code: Server did not recognize the value of HTTP
> Header SOAPAction
> 
> 
> If I remember my SOAP docs correctly the SOACPAction must be 
> set to the
> following
> SOAPAction: ""
> 
> This setting is to be placed in the HTTP headers much the same as a
> Content-Length.
> 
> Note that to get the SOAP servers to recognize my requests I 
> also added
> the following to my HTTP headers.
> Content-Type: text/xml; charset="utf-8"     
> 
> 
> Adding entries to the http headers is usually a function of the HTTP
> libraries you are using.  I am using a hand rolled set of C++ 
> libraries
> so my code samples will probably be of no use to you.  If you 
> are using
> the Java language the below is a code snippet that will allow 
> you to add
> entries into the HTTP header prior to submitting your post.
> 
> Using a java object URLConnection as the basic HTTP connection object
> you can use the setRequestProperty method which takes a key 
> and value as
> String.  In the example above the key would be 
>       String key="SOAPAction";
> and the value would be 
>       String value="\"\"";
> 
> Thus adding the SOAPAction: "" to the HTTP request header.
> 
> Hope this helps,
> 
> Ken
> -----Original Message-----
> From: Mike Carney [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 7:48 AM
> To: [EMAIL PROTECTED]
> Subject: Fault Code: Server did not recognize the value of HTTP Header
> SOAPAction
> 
> 
> Hello,
> 
> I am trying to connect to a webservice and I keep getting this error:
> 
> Fault code: soap:Client
> Fault string: Server did not recognize the value of HTTP Header
> SOAPAction:
> http://benefitmall1/WebService1/Service1.asmx/HelloWorld
> 
> Any ideas on what I am doing wrong.  I know this is the place 
> where the
> webservice can be invoked.
> 
> Thanks,
> 
> Mike

<<attachment: winmail.dat>>

Reply via email to