axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msg2ajay <msg2a...@gmail.com>
Subject Re: Server did not recognize the value of HTTP Header SOAPAction: .
Date Tue, 15 Jan 2008 07:17:24 GMT

Got  the solution

Service service = new ServiceLocator();
	          
	          // Now use the service to get a stub which implements the SDI.
	          ServiceSoap port = service.getServiceSoap12();
	          // Make the actual call
	          String XMLI ="myxml";
	          String XMLO = port.request(XMLI);
	          System.out.println(XMLO);

thanQ all.





msg2ajay wrote:
> 
> Hello Upul,
> 
>               Firstly thanQ a lot for reply. I have tried by adding the
> code below to my client code. But i am getting another error:
> [code]
>    
> call.setSOAPActionURI("http://www.cum.com/MIMS/Request:ServiceSoap12");
> [/code]
> 
> [code]
> ERROR:
> ------
> Server did not recognize the value of HTTP Header SOAPAction:
> http://www.cum.com/MIMS/Request:ServiceSoap12
> [/code]
> 
> MY WSDL  as below:
> -------------------
> [code]
> <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
> -
> 	<wsdl:operation name="Request">
> <soap12:operation soapAction="http://www.cum.com/MIMS/Request"
> style="document"/>
> -
> 	<wsdl:input>
> <soap12:body use="literal"/>
> </wsdl:input>
> -
> 	<wsdl:output>
> <soap12:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> -
> 	<wsdl:operation name="GetTotaArray">
> <soap12:operation soapAction="http://www.cum.com/MIMS/GetTArray"
> style="document"/>
> -
> 	<wsdl:input>
> <soap12:body use="literal"/>
> </wsdl:input>
> -
> 	<wsdl:output>
> <soap12:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> +
> .
> .
> .
> 
> 
> [/code]
> 
> 
> can you tell me where i am doing mistake.
> 
> thanQ in Advance.
> Ajay
> 
> 
> 
> 
> Upul Godage wrote:
>> 
>> 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
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Server-did-not-recognize-the-value-of-HTTP-Header-SOAPAction%3A-.-tp14797293p14833047.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