axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage" <upulg....@gmail.com>
Subject Re: Server did not recognize the value of HTTP Header SOAPAction: .
Date Mon, 14 Jan 2008 11:40:50 GMT
Try setting the SOAP Action with,
call.setSOAPActionURI("should be something like http://www.cum.com/MIMS
:echoString");

You can find the SOAP Action name in the WSDL, attribute soapAction in the
relevent operation (echoString) in the relevant soap binding part.

Hope this helps.

Upul


On Jan 14, 2008 3:24 PM, msg2ajay <msg2ajay@gmail.com> wrote:

>
> hello friends,
>                 I am wrote a WebService client as below
> [code]
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
>
> import javax.xml.namespace.QName;
>
> public class AtmuClient
> {
>        public static void main(String [] args) {
>               try {
>                        String req="request";
>                   String endpoint ="
> http://10.1.3.104/mims/service.asmx?WSDL";
>                   String nameSpaceUri = "http://www.cum.com/MIMS";
>
>                   Service  service = new Service();
>                   Call     call    = (Call) service.createCall();
>
>                   call.setTargetEndpointAddress( new java.net.URL(endpoint)
> );
>                   call.setOperationName(new QName(nameSpaceUri,
> "echoString") );
>
>                   String ret = (String) call.invoke( new Object[] { req }
> );
>                   System.out.println("Sent 'Hello!', got '" + ret + "'");
>
>               } catch (Exception e) {
>                   System.err.println(e.toString());
>               }
>           }
>
> }
>
> [/code]
>
> the out put I am getting is
>
> [code]
> Server did not recognize the value of HTTP Header SOAPAction: .
> [/code]
>
>
> what still I need to incorporate to my code. Do i need to add any methods
> still ? and one more thing is do i need to write WSDD for this? how ?. can
> any bady guide me
>
> thanQ for any greatful guidance.
> Ajay.
> --
> View this message in context:
> http://www.nabble.com/Server-did-not-recognize-the-value-of-HTTP-Header-SOAPAction%3A-.-tp14797293p14797293.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Mime
View raw message