on 06-16-2008 3:24 PM
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 "";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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
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
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.