Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

Server did not recognize the value of HTTP Header SOAPAction

I got this error now, please someone can help me?

 

Server did not recognize the value of HTTP Header SOAPAction

 

how to solve this error using QtSoap? I try to use QtSoapMessage::useNamespace(prefix, uri) and using http://tempuri.org/ as default namespace, but i don't know what is prefix and uri in useNamespace parameter?

 

thanks before.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Server did not recognize the value of HTTP Header SOAPAction

both the soap action and the namespace used to declare it are things the server expects, you should ask the server developer (or check other client code, if available).
we developed our webservice ourselves and defined both of these values.

 

here is my call of a webservice:

QtSoapMessage request;
request.setMethod(QtSoapQName("soapAction", "namespace-urn"));
//...add parameters etc
m_soap.submitRequest(request, url.path());

 you also have to use setHost on m_soap which is a QtSoapHttpTransport

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
New Developer
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

Re: Server did not recognize the value of HTTP Header SOAPAction

I have done with all you said. Did you use request.useNamespace() in your code? I think that function will help me, but i don't understand with parameter in function. I still don't have a solution for my error.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Server did not recognize the value of HTTP Header SOAPAction

no, i don't have useNamespace in my code, just checked.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

Re: Server did not recognize the value of HTTP Header SOAPAction

[ Edited ]

Hi Simon,

 

Its me again,

can QtSoap parse this wsdl? I got problem with the web service header and then

i  tried to using gsoap but i don't know how to embed gsoap into bb cascade project..

 

thanks a lot.

Victor

 

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">

 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Server did not recognize the value of HTTP Header SOAPAction

please open a new thread for a new question.
btw, is this thread resolved? you could mark it as such, then.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter