cancel
Showing results for 
Search instead for 
Did you mean: 

Google WebService - Proxy Error

Former Member
0 Kudos

Hi,

I tried to get Google WebService running in the portal according to the example given in the EP 6.0 PDK...

When I run the Portal Component I get the error:

Caused by: java.lang.reflect.InvocationTargetException: javax.xml.soap.SOAPException: [PROXY Error] com.inqmy.lib.jaxm.soap.SAPSoapException: javax.xml.soap.SOAPException: Unable to internalize message (proxy host: proxy, proxy port: 81, non proxy host: localhost|mpcc06xc.*)

I am completely stuck here - any ideas what causes this error??

Michael

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Kiran,

you are right. Even we are getting the same error in EP6 SP9 also.

But the same web service (code) working in EP6 SP6 sneak preview.

And also I identified that while starting SAML service in VA throws below exception.

Caused by: com.sap.security.api.saml.service.exception.SAMLServiceException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found

at com.sap.security.core.server.saml.service.SAMLServiceImpl.<init>(SAMLServiceImpl.java:329)

at com.sap.security.core.server.saml.service.SAMLServiceFrame.start(SAMLServiceFrame.java:176)

... 6 more

Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found

at javax.xml.soap.MessageFactory.newInstance(Unknown Source)

at com.sap.security.core.server.saml.service.SAMLServiceImpl.<init>(SAMLServiceImpl.java:288)

I feel there is a problem with the WAS in starting SOAP related services.

Can any one help me in this ??

Thanks and Regards,

SAR.

Former Member
0 Kudos

Michael,

Did you get this fixed? I have EP6 SP2 and get the same error, using both SAP's example, and my own coded example.

My network uses no proxy, so not sure why it would fail.

I get the following in the SOAP log:

Call failed

javax.xml.soap.SOAPException: [PROXY Error] com.inqmy.lib.jaxm.soap.SAPSoapException: javax.xml.soap.SOAPException: Unable to internalize message (proxy host: null, proxy port: -1, non proxy host: null)

at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:157)

at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)

at com.tutorial.wsdl2service.MyGoogleService.doGoogleSearch(MyGoogleService.java:194)

at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:98)

............

Former Member
0 Kudos

Which ServicePack of the portal do you use ?

I had a similar error with SP1 which was related to a bug in the soap stack.

Maybe your proxy settings in the portal are wrong ?

Former Member
0 Kudos

It's EP6 SP2 with latest patches...

Former Member
0 Kudos

Did you checked your portal proxy settings?

You could also try to verify, if a simple portal component can access google:

- create a new portal application object (e.g. with the eclipse plugins) and add some code like:

URL url = new URL("http://www.google.com");

URLConnection urlConnection = url.openConnection();

urlConnection.connect();

Now check the portal log files to see if there occur some proxy or connection errors.

Former Member
0 Kudos

No proxy here and still having an error...

Former Member
0 Kudos

Hi,

I also have the same problem. I get this when the method on the web service is invoked. I don't have proxies. Also I tried to connect to a URL via java.net.URL and it worked fine. I think the error is originating from com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod. Another weird thing I noticed is the line number given in the stack trace is from "}else". But the if & else looks ok.

Appreciate any suggestions to overcome this error.