on 04-19-2012 5:34 PM
Hi experts,
I am making a HttpPost Call to Standard SAP ME webservice from MII transaction to create a PO, in the PostData we are setting the SOAPxml request.
If there is error in creating a PO, MII transaction doest show me the response data, In the response, i see the following trace.
data set to HttpPost request.
Trying to retrieve the ME response from HTTP_Post_0.ReturnAsString & HTTP_Post_0.ReturnAsXML methods.
am i missing something?
Message was edited by: Shridhar N I see the following message in logs; Message: [Transaction: 248465] Uncaught exception from HTTP_Post_0, Severity: Error Date: 2012-04-19 Time: 11:41:37:482 Category: /Applications/XMII/Xacute/Event Location: com.sap.xmii.bls.engine.TransactionInstance Application: sap.com/xapps~xmii~ear Message: *** MISSING RESOURCE: Unable to localize Unknown variable: HTTP_Post_0.LastErrorMessage Severity: Warning Date: 2012-04-19 Time: 11:41:37:482 Category: /Applications/LHCommon Location: com.sap.lhcommon.localization.MessageCatalog Application: sap.com/xapps~xmii~ear Thread: Thread[HTTP Worker [@898724571],5,Dedicated_Application_Thread] Data Source: j2ee/cluster/server0/log/applications_00.log
If you are using MII 12.2 you can add a Catch block and then examine the error message from the Catch branch with a Trace action.
- Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Steve,
I see "13:51:43.351 [DEBUG] HTTP Post:false statusText:Internal Server Error statusCode:500
" message.
When i pass the correct data, i see "13:49:10.633 [DEBUG] HTTP Post:true statusText:OK statusCode:200" message and there is no error.
Why could this be happening.? If the input data is incorrect, i should get an error message from the server/app and it should not stop the flow.
am i missing something?
Thanks,
Parameter | Description | Type |
DisableHandling | User-defined message | Boolean |
Source | The action that is throwing the exception | String |
ActionType | Type of the action that is throwing the exception | String |
Message | Message the exception contains | String |
ExceptionType | Type of exception thrown | String |
ExceptionCaught | If an exception occurred, the value is true | Boolean |
Succeeded | Value is always true | Boolean |
Message was edited by: Michael Appleby
You can actually use Webservice action block but you have to create 3 sequence steps to modify the request to remove the non-required nodes, WS1 without execution, Assignment action (to remove the un-needed nodes from WS1 request and assign the rest of the request required values), WS2 and assign its request from the modified WS1 request, and execute WS2
- Steve
Thanks Steve,
I will try that option aswell.
I have one more question:
I am trying to set the HTTPPost ReturnXML (which is a SOAP response xml) to a Transaction parameter of type xml, from which i plan to use to retrive the data or faultcode or faultstring etc..
I have a Transaction output param of type xml (ReturnData). In the POGrid (iGrid), the ReturnData wont show up under the 'Column names' for POXacQuery (Querytemplate). If i change the datatype of ReturnData to String, it shows up and i can see the data in Applet.
I need to the response so that we can display proper message.
Is it that we cant use a Transaction parameter of type xml to assign SOAP return xml or does it expect the return xml data in a specific format.??
Pls advise.
Thanks,
PS: I am new to MII.
Steve,
Thanks. With Webservice action, I am passing/setting minimal xml elments in the SOAP call and it works.
but, the repose has only one root node and no details on the PO created.
<ns2:ProductionOrderCreateConfirmation_sync xmlns:ns2="http://sap.com/xi/ME" xmlns="http://sap.com/xi/SAPGlobal/GDT"/>
any suggestion?
Thanks,
Hi,
I have the same issue on;
Reposne:
<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns2:ProductionOrderCreateConfirmation_sync xmlns="http://sap.com/xi/SAPGlobal/GDT" xmlns:ns2="http://sap.com/xi/ME"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Can some one help me..
Thanks,
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.