on 08-19-2015 12:02 PM
Hi Experts,
I am working Proxy to soap synchronous interface and I suppose to send data like below.
Here problem is Header and body both structure are not able to select at a time from external definition which I imported for soap structure. To achieve I suppose to do either create custom structure with header and body with envelope or add that header filed in communication channel to pass in request.
But I don’t want to create custom structure, so please suggest be how to add that field in channel level?
And which adapter message protocol is better (soap or axis)?
Is there any other possibilities to achieve easy?
Please note even I cannot change prefixes such as <soapenv:Header> <edoc:ApiAccessToken>
Thanks & Regards,
Maheswarareddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
i added as per your suggested and now below is the error,
Transmitting the message using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Parsing Error: org.xml.sax.SAXParseException: The prefix "edoc" for element "edoc:Value" is not bound.
i added the corresponding namespace, but still throwing exception on same
as per that blog i dont think we suppose to give namespace for prefix..that name space is mandatory which we need to give namespace actual one not prefix think.
please suggest me how declare the prifix namespace.
Please check the namespace defined for "edoc"(apparently is not "http://schemas.xmlsoap.org/soap/envelope"), can you share the wsdl?.
I don't think prefix must only be "edoc" in the xml.
Can you try below configuration
ApiAccessToken -> <ns0:Value>pvb</ns0:Value>
namespace -> "yournamespace" for edoc //same as what you are testing from soap UI.
Just FYI-
from soap UI request message, just do a replace all on "edoc" to "ns0", i believe this would work.
if itis working then changing the configuration to above would be successfull too.
Hi Hareesh,
even with ns0 is working. below is the wsdl file which works fine in SOAP UI tool
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="edoc">
<soapenv:Header>
<ns0:ApiAccessToken>
<ns0:Value>value</ns0:Value>
</ns0:ApiAccessToken>
</soapenv:Header>
<soapenv:Body>
<ns0:RequestOf_BusinessSearchCriteria>
<!--Optional:-->
<ns0:Input>
<!--Optional:-->
<ns0:PageIndex>10</ns0:PageIndex>
<!--Optional:-->
<ns0:ResultsPerPage>10</ns0:ResultsPerPage>
<!--Optional:-->
<ns0:Keyword>ABC</ns0:Keyword>
</ns0:Input>
</ns0:RequestOf_BusinessSearchCriteria>
</soapenv:Body>
</soapenv:Envelope>
but i am trying to send data like this
<?xml version="1.0" encoding="UTF-8"?>
<ns0:RequestOf_BusinessSearchCriteria xmlns:ns0="edoc">
<ns0:Input>
<ns0:PageIndex>10</ns0:PageIndex>
<ns0:ResultsPerPage>10</ns0:ResultsPerPage>
<ns0:Keyword>ABC</ns0:Keyword>
</ns0:Input>
</ns0:RequestOf_BusinessSearchCriteria>
and added parameters as per this bolg
BFB channel
pls suggest me where iam doing wrong.
now error is badrequest
Hi Hareesh,
i have removed namespace, then it throwing exception as Transmitting the message using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Bubble configuration error: parameter 'namespace' is missing.
which mean namespace is mandatory.
when i keep namespace, error is 400 Bad request..also i believe since error is Bad request that header info reaching and validaing is fine and i am missing something config here..Please suggest me.
Also i configure Advanced seetings(kept all logs) in ICO to get log but i did not see any diffence in data than i sent ,can i see what data goes after this module?
Note: I tried with prefixes ns0: and edoc: as hardcoded in Value.
Hi Mahesh,
Use XSLT mapping and select it in the operational mapping after the message mapping level. Make sure you select Do not use soap envelope option in the soap channel since you have manually maintained at the mapping level.
Refer below thread which discussed the same issue.
How to add a soap header in the mesage | SCN
Let me know if you still having any issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.