יום שני, 11 באפריל 2011

SBL-EAI-08000: Unable to process SOAP Header child element '%1' with '%2'


Applies to: Siebel System Software - Version: 7.7.2.6 SIA [18372] - Release: V7
Sun Solaris SPARC (64-bit)
Product Release: V7 (Enterprise)
Version: 7.7.2.6 [18372] Fin Svcs
Database: Oracle 9.2.0.6
Application Server OS: Sun Solaris 5.8
Database Server OS: Sun Solaris 5.8

This document was previously published as Siebel SR 38-3525834341.

SymptomsHi there,

We have published a new Inbound Web Service for Activities and now trying to invoke a .NET C# application by
using the following code:


private void button2_Click(object sender, System.EventArgs e)
{

string sQueryActivityUID = textBox8.Text;
NYL_spcSiebel_spcAction wsActivity2 = new NYL_spcSiebel_spcAction();
NYL_spcSiebel_spcAction_NYLSiebelActivityQueryByExample_Input oQueryByExampleInput = new NYL_spcSiebel_spcAction_NYLSiebelActivityQueryByExample_Input();


NylAllAction[] oActionQueryArray = new NylAllAction[1];
oActionQueryArray[0] = new NylAllAction();
oActionQueryArray[0].ActivityUID = sQueryActivityUID;
oQueryByExampleInput.ListOfNylAllAction = oActionQueryArray;

NYL_spcSiebel_spcAction_NYLSiebelActivityQueryByExample_Output oQueryByExampleOutput = wsActivity2. NYLSiebelActivityQueryByExample(oQueryByExampleInput);

textBox9.Text = oQueryByExampleOutput.ListOfNylAllAction[0].Type.ToString();
textBox10.Text = oQueryByExampleOutput.ListOfNylAllAction[0].Status.ToString();

}

When executing the above code, we are getting the following error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll

Additional information: Unable to process SOAP Header child element 'wsrp:path' with 'mustUnderstand="1"'(SBL-EAI-08000)


Can you please advise the meaning of the error and also provide any suggestions on how to fix this issue?


Please find attached the corresponding WSDL as reference.

BTW - Please contact me directly for this SR.

Thanks

SolutionMessage 1Description:

The customer has reported the following error after they published a new Inbound Web Service for Activities and tried to invoke a .NET C# application:


An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll

Additional information: Unable to process SOAP Header child element 'wsrp:path' with 'mustUnderstand="1"'(SBL-EAI-08000)



Resolution:
The issue was caused because the UsernameToken parameters were missing (we are using UsernameToken functionality). After adding the following lines of code, now we are able to invoke the QueryByExample successfully:

//Creating an instance of Activities WS
NYL_spcSiebel_spcAction wsActivity2 = new NYL_spcSiebel_spcAction();

//UsernameToken is attached to the SOAP message
Microsoft.Web.Services.Security.UsernameToken ActivityWSToken = new Microsoft.Web.Services.Security.UsernameToken("SADMIN", "xxxx", Microsoft.Web.Services.Security.PasswordOption.SendPlainText);
wsActivity2.RequestSoapContext.Security.Tokens.Add(ActivityWSToken);

wsActivity2.RequestSoapContext.Security.MustUnderstand = false;
wsActivity2.RequestSoapContext.Path.MustUnderstand = false;


Kind Regards,
Oracle Technical Support

אין תגובות:

הוסף רשומת תגובה