cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Dynamic Target URL in SOAP Channel

Former Member
0 Kudos

Hallo Community,

I'am quite new to PI / XI and I am facing the following issue in my scenario.

I need to set a dynamic URL for my SOAP Receiver Channel.

So i did a Dynamic Configuration in my Message Mapping.

This seems to work because the result int the XML Monitoring looks like this:

 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <!--  Eingangs-Message 
  --> 
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Record namespace="http://sap.com/xi/XI/System/SOAP" name="TServerLocation"><a href="https://cs2-api.salesforce.com/services/Soap/c/21.0/00DR0000000G28q/0DFR0000000CeT2" TARGET="test_blank">https://cs2-api.salesforce.com/services/Soap/c/21.0/00DR0000000G28q/0DFR0000000CeT2</a></SAP:Record> 
  </SAP:DynamicConfiguration>

But later I'am getting this error:

<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection refused: connect</SAP:AdditionalText> 

If i set the URL manually in the SOAP Channel it all works just great.

Can i check the Target URL of the Message where it actually was sent to?

By the way.In the SOAP Channel I set the Target URL to "http://" (because its required)

and checked the "Use Adapter-Specific Message Attributes"

Thanks for your time.

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

If you are using User Authentication, then you need to place them in the Authentication Keys under the Advanced tab and call the auth keys via dynamic configuration.

Hope this helps,

Mark

Edited by: Mark Dihiansan on Mar 22, 2011 11:45 AM

Former Member
0 Kudos

Hallo Mark,

i do not need any further Authentication. The Request gets Authenticated by the URL (which is dynamic) and a Session Id which i generate dynamically in the SOAP Header.

And it all works fine if i set the URL manually in the Channel and remove "Use Adapter-Specific Attributes".

So i guess the Problem lies within the Dynamic Configuration or am I wrong?

Thanks for your help.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

No reason why this should not work. Have you ticked Variable Transport Binding ?

Hope this helps,

Mark

Former Member
0 Kudos

Yes, i have ticked "Variable Transport Binding" for testing purpose.

Can i check the Target URL of my Message in any Monitor?

I did not really find that yet.

Thanks for your help

Former Member
0 Kudos

Issue is solved now. I simply recreated the Channel and assigned exactly the same settings and now it works. I really cant tell you why it works now since I did not change anything.

Many thanks for your time.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Probably caching issue Thanks for providing the solution.

Regards,

Mark