Webservice from Portal Service - Import Param of WebService Method Error

Hello,
I have developed a portal service and after that I created a portal web service from that portal service... If I use a String variable for the import parameter of my webservice method everything works fine! But if I us a custom class for the im port parameter of the method I get an soap error when I call the webservice!
Error:
Service: MyService
URL: Endpoint
http://myportal/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyServicec?style=rpc_enc
Method: add1to1
Exception: System.Web.Services.Protocols.SoapException
Message: com.company.ImportClass
The WSDL was generated Correctly:
     <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://namespace.com" elementFormDefault="qualified">
          <complexType name="ImportClass">
               <sequence>
                    <element name="Import1" nillable="true" type="xsd:string"/>
                    <element name="Import2" nillable="true" type="xsd:string"/>
               </sequence>
          </complexType>
     </schema>
Thanks for your help!
Johannes
Edited by: Johannes Freitag on Jun 24, 2009 2:54 PM

Hi Ozzie,
in newer NWDS versions this wizard doesn't exist any more.
[http://help.sap.com/saphelp_nw70/helpdata/en/1f/4554426dd13555e10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/1f/4554426dd13555e10000000a1550b0/frameset.htm] describes how to create a web service from a portal service.
I personally didn't create a web service by this description however. I just created a normal Java class and created a Web Service out of this class (using EAR deployment).

Similar Messages

  • Portal Webservice from Portal Service

    Hello community...
    I'm trying to build a Portal Webservice from a Portal Service, but the wizard doesn't appear in my Portal Application Object. There are only Portal Components, Portal Services and a RF Component Wizard. Are there any options configuring the NWDS to show the other wizards like the "Portal Webservice from Portal Service" one or do I have an old version of the nwds (7.0.14)?

    Hi Ozzie,
    in newer NWDS versions this wizard doesn't exist any more.
    [http://help.sap.com/saphelp_nw70/helpdata/en/1f/4554426dd13555e10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/1f/4554426dd13555e10000000a1550b0/frameset.htm] describes how to create a web service from a portal service.
    I personally didn't create a web service by this description however. I just created a normal Java class and created a Web Service out of this class (using EAR deployment).

  • Where to find  Portal WebService from Portal Service

    Hello,
    I've managed to create a portal service. i would now like to use it as a web service.
    I've found document describing the process, however when try to create a portal object I'm proposed with the choice for portal service, Portal Componant and KM Componant , but not the needed "Web Service from portal Service" .
    Does anyone know what you have to get/add/activate to have this option ?
    i'm on NWDS version 7.0.14
    regards
    Guillaume PATRY

    Hi Guillame,
    To expose your Portal Service as a Web Service, follow the steps :
    1). Select the project containing the Portal Service you wish to expose as a web service.Generate Portal Web Service with PDK Wizard by choosing Portal Web Service From Portal Service.
    2). Select the interface by clicking the browse button.You can only expose the interface that are defined in your Portal Service Project.
    3). Select the method you want to expose to the web service.WSDL files will be generated.
    4). The portalapp.xml will be automatically updated with the WSDL entries.
    5). Deploy the Portal Service on Portal.
    6). View the Web Service on Portal in the following path :
    System Administration --> Support --> Portal Runtime --> SOAP Admin --> Web Services
    7). The generated WSDL can be viewed with the URL :
    http://<server>/irj/servlet/prt/soap/com.sap.portal.prt.soap.<servicename>.
    Hope this does solves your problem.
    Do award points if found helpful.
    Thanks & Regards
    Gourav.

  • Calling a abstract portal component from portal service

    Hi
    Can i access a abstract portal component from portal service?
    My requirement is i have a method called getsessionID in portal service. My portal service is enabled as a webservice. Who ever consumes my webservice they will call this method.
    This method in portal service should call a method in abstract portal component to return the session id of the user.
    is this possible.
    Thanks in advance
    Kishore

    Hi Kishore,
           This is impossible. The AbstractPortalComponent is a servlet and it can only be executed via URL. It is easy to execute the component via url but you have to pass the logon information. Also it will run under a user context that you have specified(while passing the logon information) when calling the url. I think you ought to consider a different approach.
            Prakash Singh

  • Need to access R3 using IConnectorServiceGateway from portal service.

    Hi everyone,
    I need to access R3 using IConnectorServiceGateway from portal service but unable to access so as I don't get the IPortalComponentRequest. Can anyone help me out on how should i do the connection ?
    Please let me know as soon as possible.
    Thanks
    Ritu

    Hello.
    I think this should work
        * Méthode renvoyant une connexion au backend SAP/R3 via un pool de
        * connexion.
        * @param userLocale  - la locale de l'utilisateur
        * @param user        - utilisateur pour lequel il faut une connection
        * @param systemAlias - système pour se connecter
        * @return une connexion au backend SAP/R3.
        * @throws ConnectionPoolException
        *             levée en cas d'erreur.
       public IConnection getConnection(
             Locale userLocale,
             IUserContext user,
             String systemAlias) throws ConnectionPoolException {
          ConnectionProperties prop = null;
          IConnection connection = null;
          IConnectorGatewayService cgService = null;
          try {
             // Connector Gateway Service.
             cgService = (IConnectorGatewayService) PortalRuntime
                   .getRuntimeResources().getService(IConnectorService.KEY);
             if (cgService == null) {
                throw new ConnectionPoolException(
                      "Error in get Connector Gateway Service...");
             IPortalComponentRequest aRequest;
             if (systemAlias == null) {
                throw new ConnectionPoolException(
                      "System alias 'systemAlias' name is null...");
             // Demande la connexion au service :
             prop = new ConnectionProperties(userLocale, user);
             connection = cgService.getConnection(systemAlias, prop);
          } catch (Exception ex) {
             throw new ConnectionPoolException(ex);
    regards
    Guillaume PATRY

  • Getting exception while accessing External WebServices from Portal Componen

    Hi,
    We are using one external Temperature WebService and calling it from the proxy which is called by a Portal Component. My proxy name is TempService and portal component name is TempComponent.While calling the web service from portal component we are getting the exception. When I checked with log file, I got that invokeMethod() is failing and following exception is occuring :
    Caused by: com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message. Check the nested Exception.
         at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:197)
         at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
         at com.sap.portal.tutorial.translation.TempService.getTemp(TempService.java:158)
         at com.sap.portal.tutorial.TempComponent.TempComponent.doContent(TempComponent.java:18)
    Can some one help us to resolve it.
    Thanks in advance,
    ajay

    As far as I know, webservices are working pretty well from SP2 Patch4. On patch3 hf2 I've had problems creating the proxy classes (especially for consuming .net webservices) and also gotten some runtime exception (cannot remember what they were).
    Suggest you open an OSS against SAP with your specific problem.

  • DB access in Web Dynpro Portal Service / or EJB with WebService ?

    Hi,
    I will develop a web dynpro application which will run in the EP and use an DB. How are the best practices in this scenario ? Should I use a Web Dynpro Model (EJB or WebService) for the persistence operations or should I use Portal Services ?
    Regards
    Flo

    Thanks,
    ok some words more... , I want to find out the differences between VC, PDK and Web Dynpro. Most of the parts of the application will be written in Web Dynpro. It´s possible to access portal services in Web Dynpro. But not with a Web Dynpro Model, so will going to use EJB/Webservice.
    But here I have one more question... I am wondering why EJB a n d Webservice in combination !?!? Can´t I only write a Webservice o r a EJB to achieve the DB connectivity ?
    Thanks
    Flo

  • Calling BAPI from Portal Service

    Hi all,
    I have created a KM custom property renderer, what includes a Portal Service.
    Now, I would like to call a BAPI from the renderer component using JCO.
    Does anybody how or whether that works?
    Or does anybody have a sample code how to call a BAPI using JCO from a portal service?
    Thanks
    ISmail

    Hi,
    This is possible.
    Please see the following documentation:
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/frameset.htm|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/frameset.htm]
    Regards,
    Zohar

  • Session from Portal Service

    Hi,
    how can I get the HTTP session from within a portal service?
    - Frank

    You can't. You have to pass the request variable from another component to portal service and then grab http session from it.

  • Read Iview component profile from Portal Service

    Is there any way this can be done?

    We have a situation where we need to define  application parameters that is to be accessed across different iviews and a portal service. These application parameters can be   modified by content administrators if it's at an iview level. We are trying to see if this can be done without  the use of system landscapes which is available only to System administrators.

  • Problem Invoking a EBIZ webservice from ABC Service

    Hi,
    I need to invoke a webservice of EBIZ in a ABC Service.For that I created a partner link of the webservice and created the properties wsseHeaders,wsseUsername,wssePassword in the partnerlink for ebiz service call and I also have this properties defined in my bpel.xml
    <property name="wsseHeaders">credentials</property>
    <property name="wsseUsername">sysadmin</property>
    <property name="wssePassword">sysadmin</property>
    And I have given grant to this particular service for all users.
    and when trying to Invoke the webservice Iam getting the error as
    <messages><input><GINInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="header"><ServiceBean_Header xmlns="http://xmlns.oracle.com/apps/fnd/ServiceBean"/>
    </part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="body"><GenerateItemNumberService_GetItemNumberDescription xmlns:tns1="http://xmlns.oracle.com/apps/inv/ebi/item" xmlns="http://xmlns.oracle.com/apps/inv/ebi/item">
    <itemCatalogCategoryName xmlns=""/>
    </GenerateItemNumberService_GetItemNumberDescription>
    </part></GINInput></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>InvalidSecurity</code>
    </part><part name="summary"><summary>Missing <wsse:Security> in SOAP Header</summary>
    </part><part name="detail"><detail>null</detail>
    </part></remoteFault></fault></messages>
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>InvalidSecurity</code>
    </part><part name="summary"><summary>Missing <wsse:Security> in SOAP Header</summary>
    </part><part name="detail"><detail>null</detail>
    </part></remoteFault>
    But the credentials Iam passing are perfectly correct.
    Can any one please help me in the issue....
    Thanks,
    K.Harika Reddy

    I got the solution for my broblem.
    We have a add an extra property in bpel.xml for the version 10.1.3.4.
    <property name="wsseOASIS2004Compliant">true</property>
    Thanks,
    K.Harika Reddy.

  • Webservice from WSDL with imported XSD

    Hi all,
    Firstly, as a newbie to Jdeveloper forgive the ignorance....
    I'm trying to create and deploy a webservice (created top-down).
    I have an XSD, and a WSDL which imports this via a relative reference of the kind ../../ etc. - this validates OK in JDeveloper
    When I try to deploy this to WL I get a file not found error for this XSD, it can't find the XSD in the packaged archive to be deployed.
    So my question, for the import statement in my WSDL which is currently....
    <xsd:import namespace="http://xml.netbeans.org/schema/LoanApplication" schemaLocation="../../../LoanApprover.xsd"/> (i.e. XSD directory relative to WSDL directory at design time)
    ...what do I need to change it to so that when packaged it can find the XSD ?
    Thanks in advance
    MarkF

    Solved on JDeveloper forum.

  • Portal service and Portal webservice

    Hi Experts,
    Could you please provide the document/blog to create Portal service and to create webservice from Portal webservice?
    Regards
    Sara

    Sara,
    These URL's are giving you step by step instruction with Screen shots and Tutorials to Create Portal Service as well as Creating Webservice from Portal Service.
    You are getting error message  because of the Restriction of your Internet Explorer settings.Try to use some other Browser to open the URLs.
    Meantime I shall find the way to get rid of this exception and update you.
    Update:
    1.Copy and Paste the given URL in Browser and try to open it.
    2.Change Internet Explorer security settings:
    Go to tools->Internet Options->Security->Internet->Custom level->Medium
    /Intranet ->Custome level to Medium-Low.
    This document will be very helpful to you for Webservice access in EP.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07992b3-b5af-2a10-9886-affcbeccc4c9
    Regards,
    Karthick Eswaran
    Edited by: Karthick Eswaran on May 21, 2008 10:34 AM

  • Reimporting WebService from Service Registry into WD Model (DC type = WD)

    Hello
    We're facing a strange behaviour when trying to reimport a webservice from our service registry. We renamed some attributes in our application service / business object (within CAF), generated, built and redeployed everything and then did the reimport within our other DC (type Web Dynpro).
    We did this several times already and it worked fine so far. Somehow today it happens that the reimport itself works but the renamed attributes do not show up correctly. In fact, they still have its namings as before... so no changes to observe here.
    However, within web services navigator the attribute names are reflected correctly.
    Because of those renamings not being applied after the reimport of the web service we're stuck on continuing our developments (java code).
    We're on NWCE 7.2 SP04, NWDS is on 7.2 SP04 PAT0017
    Any suggestions what to do? We tried to remove the exposed web service from within CAF, re-generating, re-building, re-deploying and then re-exposed it again as a web service before trying to reimport it again... all to no avail.
    Initially importing the web service into another DC (type WD as well) works fine there, the attribute names show up correctly.
    Thanks in advance
    Renaud
    P.S.
    BTW: Does anyone know how to get rid of no more required service groups?

    Hi Anupama,
    Create the custom node and attributes with cardinality 0 to n (refer to [Node and Node element |http://help.sap.com/saphelp_nw70/helpdata/en/92/1d3d41d4cc4c0de10000000a1550b0/content.htm]) and then popoulate node element with Array list values.
    Refer to Array List iteration : [Click here|http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/fbb99f25-e15e-40f4-8251-e21ac44424a3/]
    Populating the Custom context node : [Click here|NWDS for java 7.1;
    Best Regards
    Arun Jaiswal

  • Portal service and Webservice creation

    Hi Experts,
    Could you please provide the document/blog to create Portal service and to create webservice from Portal webservice?
    Regards
    Sara

    Hi,
    Check this to know how to Creating a Web Service from a Portal Service, you will find steps in page 25:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2188ae5-0601-0010-dd93-c23e381ef41e
    To create a Portal Service:
    http://help.sap.com/saphelp_nw04s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • UKM_TRANSFER_ITEMS periodically not working to rebuild committments!

    Reaching out to the SAP Community to find out if anyone has encountered the following problem: Program: UKM_TRANSFER_ITEMS is used to annually re-build FSCM commitment on accounts that get out of sync with SAP is currently NOT working. This transacti

  • Having a hard time signing into websites with Safari

    Hi, I'm having a hard time signing in my username and password for e-mail addresses I use and for message boards as well. I use Safari all the time accept for my school website that requires IE. Anyways, I use Comcast and I have been trying to sign i

  • One user can not map a network drive

                       Hi, A costumer of mine is trying to map a network drive for an existing user that has always had access to the NSS6000 Network Storage Device. This still works for all other users except this one. It looks like an authentication fa

  • FIX for Dell U3011 displaying YPbPr instead of RGB via display port

    I kind of hacked my way around and got my Dell U3011 to properly display RGB instead of YPbPr (or YCbCr) over a mini display port to display port cable for my MacBook Pro Retina 15"! WOOHOO! no need for that stupid $150 dual link dvi to mini displayp

  • To add custom field in MIRO in SAP ECC 6.0

    Hi All, I am using ECC 6.0 version of SAP. I want to add a custom field inside the DISPLAY tab on the MIRO screen. Please give me any pointers for any USER EXIT or OSS note for MIRO screen so that we can add a custom field under the display tab on th