cancel
Showing results for 
Search instead for 
Did you mean: 

RFC to WS scenario

Former Member
0 Kudos

Hello,

I've developed this scenario with all things that I considered necesary. But I have a problem that I cannot solve yet. Using the SXMB_MONI I saw this error:

  • "com.sap.aii.af.ra.ms.api.DeliveryException: javaio.IOException: invalid content type for SOAP: TEXT / HTML; HTTP 403 Forbidden";

and also I have this message obtained from WS Navigator:

  • "a remote host refused an attempted connect operation"

I really tried everything in order to solve this issues (SM59, SICF, SXI_CACHE, SXMB_ADM, Notes 75186, 517484 and 796726, etc.). So now I'm asking for your help.

Thanks.

Pablo

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Kudos

The problems seems to be solved. It was a simple thing. The data i've received to put in my CCs was wrong. The user had no permissions to invoque the RFC in the sender CC and the proxy.

Thanks to all of you for your answers.

vishal1889
Active Participant
0 Kudos

Pablo,

As you said that there is proxy server in between PI System and WS server, is there any authentication required to pass through that proxy server? are you maintaining any proxy server credentials in the communication channel?

Also I would suggest you to try a Telnet connection and perform a trace-route from your PI system to the WS server. It might help you in locating the point where authorization is getting failed.

Thanks

VJ

Former Member
0 Kudos

Someone told me that I should try with a Java Proxy in the middle. Does anyone know something about this posibility?

Bhavani_Baisani
Participant
0 Kudos
vishal1889
Active Participant
0 Kudos

Hi

Can you please elaborate more about the error and the WSDL URL you are using.

Is the server where this webservice is hosted is in same network as of your PI System ?

Is there any firewall/proxy server between PI system and this server ? If yes, it might be rejecting your WS request.

Regards

VJ

Former Member
0 Kudos

Hello,

The server and the PI system are in different networks. The firewall/proxy exists but we already fix that issue by allowing the URL.

Thanks for your answer.

vishal1889
Active Participant
0 Kudos

In your above responses you have mentioned that, you were able to complete the request using SOAPUI, can you take the payload from that successful request and trigger a test message from RWB, this will clarify if there is some issue with the RFC.

If the request still gets in error then I would suggest you to again check the firewall rule and test if you are able to make connection to the WS server from PI System.

Also you can use XPI Inspector tool to get the trace logs for WS request and response to see where your request is getting blocked.

Regards

VJ

Former Member
0 Kudos

I'm getting this error --> 401 Unauthorized: Combination of user and password entered is invalid.

However, when I try those in the WS, it returns no mistake.

gagandeep_batra
Active Contributor
0 Kudos

Did you check that also?

your RFC is unicode enabled?

Regards

Gagan

Former Member
0 Kudos

If you refer to the checkbox in the CC sender then yes. I tried both ways (checked/unckecked) and the results didn't change. Thanks anyway

manigram
Active Participant
0 Kudos

HI,

Check your login credential.

Regards,

Mani

Former Member
0 Kudos

Hi,

Along with the points suggested by Experts. Please try to send the message using SOAP UI. Do you receive the same error ?

Thanks,

Sudhansu

Former Member
0 Kudos

Hi,

Thank you for your answer.

I tried with SOAP UI and the result was "System.Web.Services.Protocols.SoapException: Server was unable to read request. ---> System.InvalidOperationException: There is an error in XML document (10, 29). ---> System.FormatException: Input string was not in a correct format."

When I edited that parameter with a correct value SOAP UI worked. But, when I do the same thing in the execution of the RFC the error persists.

Former Member
0 Kudos

Hi Pablo,

where exactly do you send the request? Have you made sure that you send the payload data to the WSDL endpoint and not to the WSDL location? The address with "?WSDL" in the end should be the wrong one. soapUI recognizes this automatically, in PI you have to put that manually.

You could also try WSNavigator to see whether it works. The advantage of WSNavigator over soapUI is that it is executed on PI system, not on your client.

Regards,

Jörg

Former Member
0 Kudos

I tried with WSNavigator and it returns this error --> "a remote host refused an attempted connect operation".

About the WSDL...what would be the endpoint and the location? I always putted the wsdl address as Target URL.

former_member184720
Active Contributor
0 Kudos

Open your wsdl -? search for the tag Endpoint URL..

if it is not there then search for <Soap:address>. There should be some address(location) indicating target server name.

If you dont see anything then you might have provided with a wsdl without any binding.

Former Member
0 Kudos

I found the <Soap:address>. I replaced it in the Target URL of the CC but the error persists.

Former Member
0 Kudos

Hi Pablo

Use this module in your receiver SOAP adapter and then test

AF_Modules/MessageTransformBean

Let me know if it worked or not.

Former Member
0 Kudos

I already did that. And also tried with text/xml and nothing. But thanks anyway

former_member440061
Participant
0 Kudos


Hi,

Can you please check if the url you are using is correct. Make sure it is in the proper format. Also try opening it up in a browser and see if it is working.

Former Member
0 Kudos

The URL i'm using works fine. In the Target URL I have the same address with "?WSDL" (also works).

former_member184720
Active Contributor
0 Kudos

403 means the request received by server but refuses to take any further action..

Can you check if the configured URL is valid along with the valid credentials?