Error in Consuming Portal Webservice

Hi ,
I created a portal web service(RetrieveAndValidateUserService) and then consumed this portal service in an AbstractPortal Component application(RetrieveValidateUserComp).
On deploying that application on portal I get the following error -
#1.5#001372247F6F00640000001C000011600004542B1E4EA3FD#1218444075594#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#Administrator#34878##PUNITP84649D.ad_SYN_3160950#Administrator#2b7b0eb0678111ddb00a001372247f6f#SAPEngine_Application_Thread[impl:3]_4##0#0#Error#1#/System/Server#Java###Exception ID:02:11_11/08/08_0002_3160950
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : RetrieveAndVAlidateUser.RetrieveValidateUserComp
      at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
      at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
      at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
      at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
      at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
      at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
      at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
      at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
      at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
      at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
      at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
      at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
      at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
      at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.pseg.test.webservice.RetrieveValidateUserComp of Portal Component RetrieveAndVAlidateUser.RetrieveValidateUserComp because: Could not instantiate implementation class
      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:269)
      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
      at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
      at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
      at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
      ... 26 more
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application RetrieveAndValidateUserService
      at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:415)
      at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:387)
      at com.sapportals.portal.prt.core.broker.PortalApplicationItem._refresh(PortalApplicationItem.java:507)
      at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getCoreLoader(PortalApplicationItem.java:1360)
      at com.sapportals.portal.prt.core.broker.PortalComponentItem.getClassLoader(PortalComponentItem.java:569)
      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getClassLoader(PortalComponentItemFacade.java:102)
      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
      ... 30 more
1. I added a Private Sharing Reference Property in portalapps.xml of the application -
<application-config>
    <property name="PrivateSharingReference" value="com.pseg.webservice.RetrieveAndValidateUser"/>
  </application-config>
2. I modified the Java-Build Path to include the Portal Service Application.
3. I deployed the Webservice par on the portal. I can see the service listed under Applications in
System Administration->System configuration->Service Configuration.
Is there anything i am missing or doing incorrectly?
Points will be promptly awarded for helpful answers.

Hi Lokesh
I created a Portal Service consuming a webservice.
It turns out the Private Sharing Reference that i gave had some fault. That's corrected now.
Now on deploying the Portal Application I created for accessing the service, i am getting the following error -
java.lang.Exception: The parameter Accounts is null before the serialization but in WSDL definition this field cannot be null
Here, we need to pass this parameter "Accounts" as NULL only, for test purpose.
Points will be awarded generously in case of helpful answer.

Similar Messages

  • Getting error in consuming google webservices from JspDynPage

    Hi All,
    Getting following error while consuming google webservices from JspDynPage
    An exception occurred while processing a request for :
    iView : GoogleSer.google
    Component Name : GoogleSer.google
    Could not find portal application com.company.global.enterprise.portal.wsdl.webservices.service.
    Code :
    MyGoogle googleService =
    (MyGoogle) PortalRuntime.getRuntimeResources().getService("com.company.global.enterprise.portal.wsdl.webservices.service.MyGoogle");
    GoogleSearchResult result = googleService.doGoogleSearch("google", "SAP", 0, 10, false, "", false, "", "", "");
    ResultElement[] results = result.getResultElements();          
    if(results != null) {
    response.write("<br> Search Result Size " +results.length );
    for (int i = 0; i < results.length; i++) {
    response.write((i + 1) + ": " + results);
    Thanks
    Rudra

    Hi,
    I am still having the same problem, however the scenario in which I am getting varies.
    I am getting this exception:
    "com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message."
    Some users when trying to login into the portal are getting blank screen and for some the portal launcher page is loading fine and could go to the Home Page.
    When I view the logs I am seeing the Nested Soap Exception.
    Any Ideas??? Starting the J2EE engine also did'nt help.
    Thanks in advance.
    Madhavi

  • Getting error while consuming google webservice in jspDynpage

    Hi All,
    I am consuming google webservices in my JspDyn page
    i am getting following error
    An exception occurred while processing a request for :
    iView : GoogleSer.google
    Component Name : GoogleSer.google
    Could not find portal application <b>com.company.global.enterprise.portal.wsdl.webservices.service.</b>
    Please help me to resolve this issue
    code ::
    MyGoogle googleService =
    (MyGoogle) PortalRuntime.getRuntimeResources().getService("com.company.global.enterprise.portal.wsdl.webservices.service.MyGoogle");
    GoogleSearchResult result = googleService.doGoogleSearch("google", "SAP", 0, 10, false, "", false, "", "", "");
    Thanks & Regards
    Rudra

    Hi,
    I am still having the same problem, however the scenario in which I am getting varies.
    I am getting this exception:
    "com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message."
    Some users when trying to login into the portal are getting blank screen and for some the portal launcher page is loading fine and could go to the Home Page.
    When I view the logs I am seeing the Nested Soap Exception.
    Any Ideas??? Starting the J2EE engine also did'nt help.
    Thanks in advance.
    Madhavi

  • Error while consuming a webservice in nwds

    Dear Users,
      I m facing an error while consuming a wsdl webservice in webdynpro java error................
    Error Mon Apr 20 16:53:29 IST 2009 Apr 20, 2009 4:53:29 PM          com.sap.ide.webdynpro.ui.service.ServicesUI          [Thread[ModalContext,5,main]] Error: Internal error
       Plugin name: Web Dynpro Model Editor Services
       Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
       Class      : com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9
       Method     : doImportWebServiceModel
       Message    : Web Service model import failed
       Exception  : com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
    com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:416)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    -- caused by --
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.generateInterfaces(InternalHelperFunctions.java:370)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:372)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Server redirected too many  times (20) -> java.net.ProtocolException: Server redirected too many  times (20)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1039)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1126)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 8 more
    Caused by: java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:823)
         at java.net.URL.openStream(URL.java:913)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:201)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:263)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1025)
         ... 10 more
    Please help me in solving his issue.
    regards,
    Sathya

    I have the same issue attempting to connect my application to this WSDL:
    http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl
    I can load the WSDL fine as an XML file. I can also load the WSDL fine if I connect via Firefox or a browser. I can open it fine in SoapUI. I just can't access it from my Java application.
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext] Loading of definition failed for [http://uid:password-erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl]; java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.SoapUI] An error occured [Server redirected too many  times (20)], see error log for details
    2009-10-26 18:11:45,943 ERROR [soapui.errorlog] java.net.ProtocolException: Server redirected too many  times (20)
    java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
         at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
         at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
         at java.lang.Thread.run(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR] java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.net.URL.openStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.lang.Thread.run(Unknown Source)
    Any ideas?
    Edited by: tburke on Oct 27, 2009 2:26 AM

  • Error While Consuming the webservice in ABAP

    Hi,
      I am trying to consume a webservice in ECC. I have imported the WSDL and generated the proxy. Did the configuration in the SOAMANAGER. While calling the webservice from the program I am getting the following error message. "SRT: Unsupported xstream found: ("HTTP Code 400  : Bad Request")"
       Any help is appreciated.
    Thanks
    Raghavendra Kuamr

    Hi,
    Check ST11 to find detailed log of issue, most likely you are passing "WS-A" message id along with request (check settings in SOAMANAGER Logical Port).
    Try calling service after suppressing "Message Id transfer". See SAP Note: 1361688 and related notes in 0001292171
    Regards,
    Gourav
    PS: please search forum before posting questions.

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • Error While Consuming BIP Webservice

    We are trying to consume BI Web service for Login validation and we are facing an issue in Java
    here is what we are doing
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    import java.net.MalformedURLException;
    import javax.xml.rpc.ServiceException;
    import java.net.URL;
    import javax.xml.rpc.ParameterMode;
    import org.apache.axis.encoding.XMLType;
    import java.rmi.RemoteException;
    public class BIPReportCall
         public static void main(String []a)
              try{
                   validateLogin();
              catch (Exception ex)
                   ex.printStackTrace();
    public static void validateLogin()
                   String bipEndpoint = "http://analytics01-ds1-d.dats.ml.com:9704/xmlpserver/services/PublicReportService";
                   String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
         //final String reportPath = "/Home/Users/shbhat/Sales.xdo";
                   Service service = new Service();
                   Call call = null;
                   try
                   call = (Call) service.createCall();
                   call.setTargetEndpointAddress(new URL(bipEndpoint));
                   System.out.println("TESTING login Service BEGIN");
                   call.setOperationName(new QName(bipNamespace, "validateLogin"));
         call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
         call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
         call.setReturnType(XMLType.XSD_BOOLEAN);
         Boolean valid = (Boolean) call.invoke(new Object[] {"administrator", "Administrator"});
         if (valid) { System.out.println("user valid"); }
         else { System.out.println("user invalid");  }
         System.out.println("Success for validateLogin");
                   catch (ServiceException e)
                        e.printStackTrace();
                   } catch (MalformedURLException e)
                        e.printStackTrace();
                   catch(RemoteException e)
                        e.printStackTrace();
    Here is the Error that we are comming across , Please can some one help on this issue as i m very new to java
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
         at org.apache.axis.client.Call.invoke(Call.java:2515)
         at org.apache.axis.client.Call.invoke(Call.java:2210)
         at org.apache.axis.client.Call.invoke(Call.java:2133)
         at org.apache.axis.client.Call.invoke(Call.java:1656)
         at BIPReportCall.validateLogin(BIPReportCall.java:50)
         at BIPReportCall.main(BIPReportCall.java:19)
    java.lang.NullPointerException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.client.Call.invoke(Call.java:2213)
         at org.apache.axis.client.Call.invoke(Call.java:2133)
         at org.apache.axis.client.Call.invoke(Call.java:1656)
         at BIPReportCall.validateLogin(BIPReportCall.java:50)
         at BIPReportCall.main(BIPReportCall.java:19)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
         at org.apache.axis.client.Call.invoke(Call.java:2515)
         at org.apache.axis.client.Call.invoke(Call.java:2210)
         ... 4 more

    We are trying to consume BI Web service for Login validation and we are facing an issue in Java
    here is what we are doing
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    import java.net.MalformedURLException;
    import javax.xml.rpc.ServiceException;
    import java.net.URL;
    import javax.xml.rpc.ParameterMode;
    import org.apache.axis.encoding.XMLType;
    import java.rmi.RemoteException;
    public class BIPReportCall
         public static void main(String []a)
              try{
                   validateLogin();
              catch (Exception ex)
                   ex.printStackTrace();
    public static void validateLogin()
                   String bipEndpoint = "http://analytics01-ds1-d.dats.ml.com:9704/xmlpserver/services/PublicReportService";
                   String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
         //final String reportPath = "/Home/Users/shbhat/Sales.xdo";
                   Service service = new Service();
                   Call call = null;
                   try
                   call = (Call) service.createCall();
                   call.setTargetEndpointAddress(new URL(bipEndpoint));
                   System.out.println("TESTING login Service BEGIN");
                   call.setOperationName(new QName(bipNamespace, "validateLogin"));
         call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
         call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
         call.setReturnType(XMLType.XSD_BOOLEAN);
         Boolean valid = (Boolean) call.invoke(new Object[] {"administrator", "Administrator"});
         if (valid) { System.out.println("user valid"); }
         else { System.out.println("user invalid");  }
         System.out.println("Success for validateLogin");
                   catch (ServiceException e)
                        e.printStackTrace();
                   } catch (MalformedURLException e)
                        e.printStackTrace();
                   catch(RemoteException e)
                        e.printStackTrace();
    Here is the Error that we are comming across , Please can some one help on this issue as i m very new to java
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
         at org.apache.axis.client.Call.invoke(Call.java:2515)
         at org.apache.axis.client.Call.invoke(Call.java:2210)
         at org.apache.axis.client.Call.invoke(Call.java:2133)
         at org.apache.axis.client.Call.invoke(Call.java:1656)
         at BIPReportCall.validateLogin(BIPReportCall.java:50)
         at BIPReportCall.main(BIPReportCall.java:19)
    java.lang.NullPointerException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.client.Call.invoke(Call.java:2213)
         at org.apache.axis.client.Call.invoke(Call.java:2133)
         at org.apache.axis.client.Call.invoke(Call.java:1656)
         at BIPReportCall.validateLogin(BIPReportCall.java:50)
         at BIPReportCall.main(BIPReportCall.java:19)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
         at org.apache.axis.client.Call.invoke(Call.java:2515)
         at org.apache.axis.client.Call.invoke(Call.java:2210)
         ... 4 more

  • Error while consuming PLSQL Webservice through BPEL

    HI ,
    I have created a simple PLSQL Web service called "HelloWorld" and it got successfully deployed .
    When I tried to test this webservice through BPEL Process Manager , its showing me error everytime that ( Could not create object of class 'dimple.HelloWorldWebServiceUser'; nested exception is: java.lang.ClassNotFoundException: dimple.HelloWorldWebServiceUser</summary> ) .
    Please anyone help me out with this problem .
    Thanks
    Prashant Dwivedi

    HI ,
    I have created a simple PLSQL Web service called "HelloWorld" and it got successfully deployed .
    When I tried to test this webservice through BPEL Process Manager , its showing me error everytime that ( Could not create object of class 'dimple.HelloWorldWebServiceUser'; nested exception is: java.lang.ClassNotFoundException: dimple.HelloWorldWebServiceUser</summary> ) .
    Please anyone help me out with this problem .
    Thanks
    Prashant Dwivedi

  • Error while consuming external webservice URL in SAP

    Hello every one,
    I am getting below error in sap while consuming external web service URL .
    HTTP error (return code 405, message "Method Not Allowed")
    Can any one help me on this.
    Thank You.
    Vijay

    Hi Vijay,
    Did you check if you are using full correct UURL. That happens with incorrect URL.
    Thanks,
    Ravi

  • SSL Authentication Error While consuming HTTPS webservice

    Hi, i am calling a JAX-RPC Webservice method through HTTPS. I am Getting 403 Forbidden Error followed by a message, Your browser sent a query that could not be understood by the server.
    The following is the SSL debug Trace
    *** CertificateRequest
    Cert Types: RSA, DSS,
    Cert Authorities:
    <CN=xxxxxx, OU=xxxxxx, O=xxxxxx, L=xxxxxx, ST=xxxxxx, C=xx, EMAILADDRESS=xxxxxx>
    <CN=xxx>
    <CN=xxx, DC=testcore, DC=test, DC=dir, DC=xxx, DC=com>
    <OU=TOC, O="xxx", C=xx, ST=xx, CN=xx Certificate Authority>
    <CN=xxxxxx, OU=xxx, O=xxx, L=xxx, ST=xxx, C=xxx, EMAILADDRESS=xxx>
    <CN=xxxxxx>
    *** ServerHelloDone
    *** Certificate chain
    *** ClientKeyExchange, RSA PreMasterSecret, TLSv1
    Random Secret: { 3, 1, 35, 197, 161, 73, 249, 145, 160, 45, 56, 58, 176, 22, 174, 98, 174, 200, 1, 114, 151, 172, 122, 33, 46, 205, 154, 235, 253, 206, 42, 24, 20, 144, 7, 214, 139, 49, 23, 150, 5, 91, 58, 16, 163, 106, 159, 7 }
    main, WRITE: TLSv1 Handshake, length = 141
    SESSION KEYGEN:
    PreMaster Secret:
    0000: 03 01 23 C5 A1 49 F9 91 A0 2D 38 3A B0 16 AE 62 ..#..I...-8:...b
    0010: AE C8 01 72 97 AC 7A 21 2E CD 9A EB FD CE 2A 18 ...r..z!......*.
    0020: 14 90 07 D6 8B 31 17 96 05 5B 3A 10 A3 6A 9F 07 .....1...[:..j..
    CONNECTION KEYGEN:
    Client Nonce:
    0000: 4E 10 18 A0 40 A3 FF 91 D1 CB 92 C4 BB 29 E8 69 N...@........).i
    0010: 27 75 0A 1C ED 87 0F 5D 44 09 27 65 F1 22 E5 2F 'u.....]D.'e."./
    Server Nonce:
    0000: 00 00 8F C1 7D 92 67 9E 8D 06 26 81 E2 78 0B 34 ......g...&..x.4
    0010: 31 C7 1D 6C B8 45 F2 AD 5A E7 2C B6 54 60 2F FD 1..l.E..Z.,.T`/.
    Master Secret:
    0000: 3C 42 EF 0E A4 36 14 B8 3E 80 43 7E ED B9 70 34 <B...6..>.C...p4
    0010: 03 69 A3 56 EF 05 98 86 8E BE D7 67 FE 1D 23 8F .i.V.......g..#.
    0020: E6 1A 18 D4 E7 FF 36 AB 61 8D 93 B8 55 E1 B0 5A ......6.a...U..Z
    Client MAC write Secret:
    0000: 87 51 EB C6 E3 57 79 55 97 E1 BE BE 17 94 C1 31 .Q...WyU.......1
    Server MAC write Secret:
    0000: 17 FD DD 05 E1 FC EC E3 F5 1D E4 25 67 E3 0F 5D ...........%g..]
    Client write key:
    0000: 37 D4 E0 F9 33 A8 E4 95 B6 C6 4F CA D1 49 DF 3E 7...3.....O..I.>
    Server write key:
    0000: 4E 4B 6E 9B 83 C3 FB 92 8D C8 9C C0 43 01 33 2C NKn.........C.3,
    ... no IV for cipher
    main, WRITE: TLSv1 Change Cipher Spec, length = 1
    *** Finished
    verify_data: { 2, 28, 187, 61, 50, 197, 78, 249, 28, 45, 76, 180 }
    main, WRITE: TLSv1 Handshake, length = 32
    main, READ: TLSv1 Change Cipher Spec, length = 1
    main, READ: TLSv1 Handshake, length = 32
    *** Finished
    verify_data: { 107, 249, 181, 226, 207, 255, 168, 247, 141, 30, 175, 222 }
    %% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    main, WRITE: TLSv1 Application Data, length = 333
    main, WRITE: TLSv1 Application Data, length = 807
    main, READ: TLSv1 Application Data, length = 181
    java.rmi.RemoteException: HTTP Status-Code 403: Forbidden; nested exception is:
    HTTP Status-Code 403: Forbidden
    at xxx.EnrolmentReportingWebServiceServantInterface_Stub.getEnrolmentChangeSetByApplication(EnrolmentReportingWebServiceServantInterface_Stub.java:169)
    at webAgent.main(webAgent.java:16)
    Caused by: HTTP Status-Code 403: Forbidden
    at com.sun.xml.rpc.client.http.HttpClientTransport.checkResponseCode(HttpClientTransport.java:355)
    at com.sun.xml.rpc.client.http.HttpClientTransport.connectForResponse(HttpClientTransport.java:288)
    at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:109)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:113)
    at xxxxxx.EnrolmentReportingWebServiceServantInterface_Stub.getEnrolmentChangeSetByApplication(EnrolmentReportingWebServiceServantInterface_Stub.java:145)
    ... 1 more
    I am stuck at this point. The Certificates provided by the Webservice team , they are saying is verified.
    Any help will be appreciated. Thanks in advance.
    Edited by: 869912 on Jul 3, 2011 12:43 AM

    The client appears to have sent an empty certificate chain. That would mean it doesn't have a certificate available that matches what was specified in the CertificateRequest. Maybe it doesn't have a keystore at all.

  • While Consuming a WebService in JSP Dyn Page - There is an Error

    Hi Friends,
    I have a web service created in ASP.NET web Service.
    And I have Consumed the Web Service using WSDL URL.
    I need to write a code to refer that class in the JSP DynPage
    I have created like this in DoIntialization
    MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);
    int a = 10;
    int b = 20;
    obj.Add1(a,b);
    but it shows an error
    "The method Add1 Method(Add1 Method) is the type. MySErviceName is not Applicable for the arguements(int,int)"
    Please Help me in this regard.
    Thanks in Advance
    Thanks & Regards,
    Palani

    Hi Andy,
    I will let u know the sequence which i followed to consume the Webservice.
    NWDS --> File --> New --> Project --> Portal Application --> Create New Portal App Project.
    The Project is created.....
    After that i want to consume the Webservice for the same project...
    for that...
    NWDS --> File --> New --> Other --> Portal Application --> Create New Portal Application Object --> Selecting My Project?(intended prjct) --> Portal Webservice --> Portal Service from WSDL file - Client Side --> My WSDL URL --> Selecting the methods which i need to expose from the Webservice --> I gave unique name for my 1) Service 2) Alias 3) Package....and that was done....(other way is to add from portalapp.xml ??)
    After that i created a new JSPDyn page for my application in DoInitialization() method i tried to access the method from that webservice using the following code...
    MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);
    I am successfully able to access the method from the webservice using the object which i have created but i am not able to pass arguments to that method...???
    I tried consuming same webservice created in .NET in .NET itself and i am able to pass arguments successfully.
    I tried to consume webservice created in ABAP in .NET and able to implement successfully...
    but the same ABAP webservice when  i tried to consume its not working with this NWDS.
    Is there any thing else i need to follow while consuming a webservice in the EP Perspectice of NWDS ???
    Deployable Proxy is required for that ?? if required how to create and use that ??
    Thanks in Advance,
    Palani

  • Error while consuming webservice

    While consuming a webservice i got this error and i didn't found what's the problem.
    Any help?
    TypeError: Cannot marshall type 'http://www.w3.org/2001/XMLSchema::ReverseGeocodeRequest0' to simple content.
        at mx.rpc.xml::SchemaMarshaller/marshall()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\x ml\SchemaMarshaller.as:97]
        at mx.rpc.xml::SchemaManager/marshall()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\xml\ SchemaManager.as:468]
        at mx.rpc.xml::XMLEncoder/encodeType()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\xml\X MLEncoder.as:1434]
        at mx.rpc.soap::SOAPEncoder/encodeType()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\soa p\SOAPEncoder.as:806]
        at mx.rpc.xml::XMLEncoder/encode()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\xml\XMLEn coder.as:96]
        at mx.rpc.soap::SOAPEncoder/encode()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\soap\SO APEncoder.as:749]
        at mx.rpc.soap::SOAPEncoder/encodePartValue()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rp c\soap\SOAPEncoder.as:646]
        at mx.rpc.soap::SOAPEncoder/encodeMessage()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\ soap\SOAPEncoder.as:592]
        at mx.rpc.soap::SOAPEncoder/encodeOperationAsRPCLiteral()[E:\dev\4.5.1\frameworks\projects\r pc\src\mx\rpc\soap\SOAPEncoder.as:464]
        at mx.rpc.soap::SOAPEncoder/encodeBody()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\soa p\SOAPEncoder.as:358]
        at mx.rpc.soap::SOAPEncoder/encodeEnvelope()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc \soap\SOAPEncoder.as:197]
        at mx.rpc.soap::SOAPEncoder/encodeRequest()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\ soap\SOAPEncoder.as:162]
        at com.ngi.flex.lbs.webserviceObjects::BaseNGILBSWebService/call()[D:\Workspaces\WS_Stage201 1\ngiLbsFlexWebservice\src\com\ngi\flex\lbs\webserviceObjects\BaseNGILBSWebService.as:420]
        at com.ngi.flex.lbs.webserviceObjects::BaseNGILBSWebService/wsReverseGeocode()[D:\Workspaces \WS_Stage2011\ngiLbsFlexWebservice\src\com\ngi\flex\lbs\webserviceObjects\BaseNGILBSWebSer vice.as:404]
        at com.ngi.flex.lbs.webserviceObjects::NGILBSWebService/wsReverseGeocode()[D:\Workspaces\WS_ Stage2011\ngiLbsFlexWebservice\src\com\ngi\flex\lbs\webserviceObjects\NGILBSWebService.as: 529]
        at com.ngi.flex.lbs.webserviceObjects::NGILBSWebService/wsReverseGeocode_send()[D:\Workspace s\WS_Stage2011\ngiLbsFlexWebservice\src\com\ngi\flex\lbs\webserviceObjects\NGILBSWebServic e.as:539]
        at com.ngi.flex.lbs::NgiLBSSimplifiedWebservice/sendWsReverseGeocodeReq()[D:\Workspaces\WS_S tage2011\ngiLbsFlexWebservice\src\com\ngi\flex\lbs\NgiLBSSimplifiedWebservice.as:78]
        at com.ngi.flex.lbs::NgiLBSSimplifiedWebservice/reverseGeocode()[D:\Workspaces\WS_Stage2011\ ngiLbsFlexWebservice\src\com\ngi\flex\lbs\NgiLBSSimplifiedWebservice.as:66]
        at testMyLibrary/___testMyLibrary_Button1_click()[D:\Workspaces\WS_Stage2011\testMyLibrary\s rc\testMyLibrary.mxml:88]

    Try setting the resultFormat on your HTTPService to e4x.
    HTH;
    Amy

  • Consuming PI Webservice in Portal Components

    Hi
    How to Consume PI Webservice through Abstract Portal Component?
    Thanks
    Prasad

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • Error when launching GP UWL tasks from consumer portal

    In our federated portal network we have configured the universal worklist in the consumer portal to display guided procedure tasks from a producer portal - both portals are NW 7.0 SP14.
    All GP tasks from the producer portal are displayed in the consumer portal without issue.
    When we attempt to launch one of the GP tasks in the consumer portal we recieve the following error - Could not retrieve process instance: contact your system administrator.
    If we launch the GP tasks in the producer portal there are no issues.
    Has anyone experienced a similar situation?

    I worked through this issue with SAP support.
    For the ItemType with name="uwl.task.gp.XXX", where XXX is the system alias of the remote GP system.
    Changed attribute from defaultAction="launchGP" to defaultAction="editItem" because the name of the Action described for this itemType is "editItem".
    The action handler that is used is "UrlLauncher" (handler="UrlLauncher") but this handler works only with attribute launchInNewWindow="yes". So in all actions with attribute handler="UrlLauncher" change the attribute launchInNewWindow from "no" to launchInNewWindow="yes".
    Uploaded new uwl.gp.config.xml with high priority.

  • Portal WebService User Authentification error

    Hello all,
    I created a portal webservice similar to the one described in tutorial "Creating a Web Service in Enterprise Portal 6.0".
    When I tried to test it in Enterprise Portal Web Services Checker I got the error below:
    <b>The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.ContentService or the service was not found.</b>
    I already added group Everyone to my service in Portal Permissions and it still does not work.
    I read weblogs below but none helped me:
    1 - Unable to access portal service from web service..........urgent
    2 - IllegalAccessError when calling a WebService
    I checked the proxy settings and it seems to be ok.
    Does anyone have another suggestion?
    Regards,
    Mauricio

    I found the reason.
    I did not check End User checkbox for the Everyone group we inserted into Permissions of the Web Service.
    Regards,
    Mauricio

Maybe you are looking for

  • Need help with changing text size

    Hi everyone, I would like to allow users to easily change the text size of a website I am designing. To see an examplme, go to the Dell website (www.dell.com), on the bottom left there is a link to enlarge the text (or bring it back to normal size).

  • Hotmail ad is causing Adobe Flash Player error...need a fix or workaround

    Hi, I'm using Internet Explorer 9.0.8112.16421 (64-bit edition) on a 64-bit Windows 7 machine and using Adobe Flash Player "Square" 10.3.162.28 ActiveX 64-bit. Whenever I check my e-mail on Hotmail, I get the following error: Here are some problems:

  • Http connection / Accompli 008

    Hi, I'm currently developing a J2ME application for the Accompli 008. Everything works fine, but I'm having trouble making HTTP connections from the Accompli 008. I reduced the code that I only make a simple http-connection. The code works on the emu

  • Possible in 8i to rename an instance ?

    I've got an instance that the suits say is a controversial name.... say warrior. They want it renamed to something 'business like' such as ; lx101c or linux1 or something. I couldn't find any cookbook on doing this, so I thought I'd ask the crowd if

  • Enterprise Service Repositiry

    Hi all, we are sending the data from sap-isu system. when we changed meter register change transaction(EG41) in sap-isu and click on save then the data is transfed to the sap-pi automatically. But in sap-pi, sxmb_moni transaction it is showing no rec