You need to sign in to do that
Don't have an account?
vfDeveloper.ax341
SOAP Headers issue
I'm trying to integrate saleseforce with some system via .net web services.
I use soap headers in order to receive some custom authentication info from salesforce and
send back responce information(Like errorCode, ErrorMessage etc.)
My web service code snippet:
[WebMethod]
[SoapHeader("AuthHeader", Direction = SoapHeaderDirection.InOut)]
[SoapHeader("ResponseHeader", Direction = SoapHeaderDirection.Out)]
public void SomeMethod()
{
...
}
The problem is that i can initialize AuthHeader from salesforce and handle on web service side.
But i can not handle response header on salesforce side. With "system log" window i can trace and
see that Response heder exists in soap message.Seems that salesforce does not handle this and does not
initialize ResponseHeader member of proxy class generated from WSDL.
I understand that i can return ResponseHeader as part of web service method return type, but it is not acceptable from our architecture point of view.
How can i resolve this issue?
I use soap headers in order to receive some custom authentication info from salesforce and
send back responce information(Like errorCode, ErrorMessage etc.)
My web service code snippet:
[WebMethod]
[SoapHeader("AuthHeader", Direction = SoapHeaderDirection.InOut)]
[SoapHeader("ResponseHeader", Direction = SoapHeaderDirection.Out)]
public void SomeMethod()
{
...
}
The problem is that i can initialize AuthHeader from salesforce and handle on web service side.
But i can not handle response header on salesforce side. With "system log" window i can trace and
see that Response heder exists in soap message.Seems that salesforce does not handle this and does not
initialize ResponseHeader member of proxy class generated from WSDL.
I understand that i can return ResponseHeader as part of web service method return type, but it is not acceptable from our architecture point of view.
How can i resolve this issue?
Mayur
Hi, We are also facing same problem. If you are able to connect and call services of salesforce through webmethod, can you please explain the steps over here. If possible can send me the code to connect and execute queryall api. Thanks and Regards, Mayur