cancel
Showing results for 
Search instead for 
Did you mean: 

Using Dynamic Configuration api for SOAP adapter

Former Member
0 Kudos

I want to use Dynamic Configuration api to send a SOAP request to a webservice.

tha value in my adapter is

my Target URL is

http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet? channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true

which is the corresponding field i have to set in Dynamic Configuration?

I have written the following code is this right?

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

String temp = "http:/"+"/sap.com/xi/XI/System/SOAP";

DynamicConfigurationKey key = DynamicConfigurationKey.create(temp, "TServerLocation");

String varURL =

"http:/"+"/xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true";

conf.put(key,varURL);

return "";

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

chk this

rgds

Arun

Former Member
0 Kudos

Hi,

Yes, your code looks fine. Can you let me know what is the error you are getting. Have you checked the Flag in your communication channel.

Use Adapter-Specific Message Attributes

Variable Transport Binding

Once you test your scenario you can see the Dynamic URL in your message Header by going to tcode sxmb_moni. See if you are able to find something called DynamicConfiguration in your message haeader. If yes what is the value set there.

PS: From the target URL you posted It looks like your webservice is hosted on the XI box itself. Is it the same XI box or different box? Just curious to know.

Reward point if answer is helpful

Thanks

Amit

Former Member
0 Kudos

Yes you are right the Webservice im posting to is again a SOAP-File scenario in the same XI box.

Actually im getting a variety of errors

1.Invalid content-type for SOAP TEXT/HTML

2. Http 401 unauthorized error

3. Connection refused

the latest being Http 500 internal server error.

im not able to understand what is the reason for this. I tried opening the page of the servlet directly using internet explorer its fine.

Former Member
0 Kudos

i also added the uid pwd but there is no use, the problem persists.

http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?

channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true&sap-user=xiapplr3&sap-

password=xiapplr3

Yes i have checked both ASMA and Variable transport binding.

If i give the same url in the Adapter it works fine but when i give it in mapping using Dynamic configuration it doesnt.

I checked sxmb_moni im gettin gthe perfet url in the TServerLocation parameter

Former Member
0 Kudos

Hi,

Please try testing your webservice from SAP Soap Client and then we can trace down the issue. Copy the exact payload from your monitoring(sxmb_moni) to SAP Soap Client and see what response you get back.

Regarding Dynamic Configuration in the message header . Are you able to see that ??

Thanks

Amit

Former Member
0 Kudos

Hi,

Thanks!

The error was actually a Authorization error. The server didnt recognise the user id and pwd in the url

sap-user=xiapplr3&sap-password=xiapplr3

so i passed it as

http://xiapplr3:xiapplr3@server

It worked..

Thanks

for all ur inputs

Answers (0)