on 03-26-2012 6:44 AM
Hello
I have ABAP Proxy to SOAP sceanrio. While posting to the target URL i am receiving following message in the receiver soap communcation channel.
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized
SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized
When I tried on PI server pasting this URL it gives me the windows pop up for credentials and upon providing the username and password it works.
But whereas I provide the same credentials in the communication channel during posting it displays the above message.
Also I tried providing the below module as well ,
localejbs/AF_Modules/MessageTransformBean L MSG
module Key
MSG Transform.ContentType text/xml
But no luck.
Hi,
What do you mean by saying that "it works in web browser"? My suspiction is that you are putting the .wsdl location in the receiver Communication Channel, which is incorrect, and since you do that, you display the wsdl in the browser after you provide user credentials. Am I right? Does your URL in receiver CC end with "?WSDL"? If so, change the URL to what is mentioned in the following tag of the wsdl file:
<soap:address location="HERE" />
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Greg,
Thanks for the reply.
I tried making the changes as requested.
Below is the target URL that I used in the receiver CC.
http://host/maximo/GR.asmx="HERE"
After using above I received
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
As the CC says content invalid do i need to add the modules in the CC.
I'm afraid that I did not make myself clear, looking at your reply. If your URL was: http://host/maximo/GR.asmx, then most probably no further adjustments should be required to it. Try doing what Michal has suggested: import the .wsdl file to SOAP UI or other web service testing tool and test from there, then let us know about the results.
Thanks for the replies. As said by Mich I tried using the SOAP UI, I get the below message
Where as when I try to paste the same end point URL in the internet explorer and provide the same credentials it shows the target structure. i do not get any unauthorization. I tried this in PI serve internet explorer and local Internet explorer also both worked opening the target strucute. But when I am trying post by SOAP communication channel and by using SOAP UI i get the 401 error.
Is this because end point URL that my user gave me does not support the SOAP format and hence I am receiving "java.io.IOException: invalid content type for SOAP: TEXT/XML;HTTP 401 Unauthorized" It says invalid content type does this have to do anything related to modules that I need to add in the SOAP receiver CC.
Questions:
>Where as when I try to paste the same end point URL in the internet explorer and provide the same credentials it shows the target structure.
Do you get the response data of the webservice? If so then the problem is weird. I think it shows only the WSDL structures. This does not validate your credentials to return the response. Please confirm.
During your soap UI testing, did you input the user credentials at the right place?
If soapui and communication channel gives the same results that means clearly something wrong with user credentials. Also you might want to refresh cache and restart the soap channel too.
Thanks for the inputs. -- --> Do you get the response data of the webservice? If so then the problem is weird. I think it shows only the WSDL structures. This does not validate your credentials to return the response. Please confirm. Yes it shows the WSDL target structure. This is a asynchronous message. I am not sure if there would be any further authentication at external system. But in Internet explorer after giving credentials it shows the target strucutre. -- > During your soap UI testing, did you input the user credentials at the right place? Yes i placed the credentials at the left hand bottom of the screen under request properties of SOAP UI tool.
You might want to check this link? When you send via browser you might send as application/xml?
Hi,
Please check following -
1. Incorrect URL
2. You are not behind some kind of firewall that is stopping you to reach there.
3.User Authentication.
regards
Aashish Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>When I tried on PI server pasting this URL it gives me the windows pop up for credentials and upon providing the username and password it works.
you can see this when you put the SOAP URL in the browser ?
this is strange... it should not be happening as you're not accessing the WSDL with credentials...
can you try using this Web service with SOAP UI (free tool) ? put the WSDL there and try sending the message,
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
By chance, are you using dynamic configuration? If yes, then instead of using the username/password authentication in SOAP Receiver CC, you need to place them in the Authentication Keys (under advanced tab). Then in your dynamic configuration, pass the username by using TAuthKey as the technical name.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just check whether username and password in receiver SOAP comm channel is maintained correctly.
also username - can have a domain name followed by backslash then username, if needed. just check it.
Also ask your basis team to do a full CPACache refresh using http://hostname:j2eeport/CPACache/refresh?mode=full using PIDIRUSER and see if there is any error in it. if it is successful, then test your scenario again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.