cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP xmltag problem

pankaj_yadav3
Participant
0 Kudos

HI Expert

I am working on IDOC  to Webservice scenario . My webservice format different to PI generated webservice .

My webservice is start :  -<Login xmlns="http://coadnet.com/apex/">

PI generated service   :-<ns1:Login xmlns:ns1="http://coadnet.com/apex/">

I want to change PI service to according me . I want  to remove  ns1: tag to pi generated service .

Please let me can we change it via  any standered function either we can write any java mapping for remove for this tag.

Please help me for this issue .

Regards

P .Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

pankaj_yadav3
Participant
0 Kudos

Hello Expert

I have add the Anonymizer Bean module in SOAP receiver channel , But now i am facing another problem .

Exception caught by adapter framework: SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Cannot process the message because the content type 'application/xml' was not the expected type 'text/xml; charset=utf-8'.


So for this problem i used one more module .

AF_Modules/MessageTransformBean   

After adding this module above problem resolved but received one new problem :

SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request

Please help me for this problem .

Regards

P .Singh

former_member190293
Active Contributor
0 Kudos

Hi Pankaj!

Import your webservice WSDL in SOAP UI and make test call to ensure the web service works correctly with no issues.

Then take your web service request payload from your current scenario causing errors and use it in SOAP UI as request message. If you get any error compare your message with SOAP UI generated request to find the differences.

Regards, Evgeniy.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Since your scenario is async, the modules have to be before the SOAPAdapter module step. In this case, the ordering should be:

1. AnonymizerBean

2. MessageTransformBean

3. SOAPAdapterBean

If that did not solve the bad request problem, try adding this module

and post the results here

Regards,

Mark

former_member182412
Active Contributor
0 Kudos

Hi Pankaj,

Remove XML namespace in message type then ns1 wont be there in PI web service also.

Regrads,

Praveen.

pankaj_yadav3
Participant
0 Kudos

HI Praveen

Thanks for quick response.


I am using the the WSDL for target system,So I can not change the Namespace , Please share me another solution.

Regards

Pankaj Singh

Snavi
Active Participant
0 Kudos

Hi Pankaj,

You can check the below blog by

https://scn.sap.com/community/pi-and-soa-middleware/blog/2014/10/02/remove-namespace-by-xmlanonymize...

this is using XMLAnonymizerBean in the module configuration to remove the namespace

Former Member
0 Kudos