MDM Web Service Generator - How to Call WS in Java?

Hi there,
I have generated a web service by navigating to http://<server>:<port>/mdm/wsgenerator - The web service is succesfully generated and deployed. I can easily test the web service using the WS Navigator (http://<server>:<port>/wsnavigator).
I am now trying to use NWDS7.2 to create a wrapper web service, and need to call my generated MDM WS using Java code. I have created a CAF project, and imported the MDM web service using the WSDL. I have created an application service and no matter what I try, I cannot get the MDM web service to instantiate.
Is there anyone that has done this before? What method should be used?
All I need to know is how to create an instance of the generated MDM web service - There is no obvious constructor to use. See my code below, but this creates an exception at runtime for "IndexOutOfBoundsException". Note that the web service I generated is called "MdmWfProjectUpdate"
service = new MdmWfProjectUpdateViDefaultService(
                              new java.net.URL(
                                          "http://<server>:<port>/MdmWfProjectUpdate/HTTPBasic?wsdl"),
                              new javax.xml.namespace.QName(
                                          "urn:MdmWfProjectUpdateWsd/HTTPNone", "MdmWfProjectUpdateVi_DefaultService"));
I can call other web services without a problem in my code, so it is quite confusing that I cannot get this to work...
Any help will be appreciated!

Hi david ,
When u imported  this webservice,there will be lot of classes generated .In these classes some are executable classes.Like if your webservice contain some operations like update,create,delete.
then for each operation tere will be one executable class  generated.
this class  must have some function like execute or invoke.You have to call this function in order to get the results.
Just check whether is there any such class generated or not.
Kindly revert back with your results.
Thanks,
sudhanshu

Similar Messages

  • MDM Web Service authentication issue. How to use ?

    Hi,
    I' am a Microsoft technology person I' am working on integrating SAP MDM 7.1 to SharePoint 2010 using MDM Web Services interface and consuming the same in .NET custom component.
    I tried the WS with "None" authentication and it worked great.
    I' am having issues understanding how HTTPAuthentication with SAP Logon ticket authentication works in MDM.
    Created the authentication enabled web service and while testing in NetWeaver WS Navigator, it throws me exception, not able to establish session with repository for user XYZ.
    Please help me with the following queries I have:
    1) How to test a authentication enabled web service in NetWeaver WS Navigator ? Do the user id/password needs to be set in the "Invocation Parameters" ? Link to any article etc will be appreciated.
    2) How to pass the MDM user credentials (or just the username) in the MDM web service in .NET code. I didn't see any parameter in the Client class constructor to pass the same, nothing related to that found in the code that gets generated on adding the service reference.
    As per the documentation on the MDM security, looks like a trust relationship also needs to be configured on MDM - allow.ip file entries.
    However first I want to understand how to pass this information in Web Services through code.
    SharePoint   -
    (1)--> SAP PI  -(2)--
    > SAP MDM                                             
    (integrated with Active Directory                        (Where Web services are deployed     (have its own user accounts)
    so logged in user is already authenticated)          and have its own user accounts)
    The trust relationship configuration could solve the problem of authentication marked in second hop (2) by registering the IP address of PI server.
    Please help me understand how would it work to solve the first hop (1) problem and what needs to be done.
    Thanks,
    Parvinder

    Thanks Gaurav.
    The link talks about setting up the Trust with MDM server.
    The code sample provided there has the following step where user name is being set and passed to MDM:
    Use  command to authenticate user session on trusted connection
           TrustedUserSessionCommand  tuscTrustedUser =
           new TrustedUserSessionCommand(mySimpleConnection);
           //  Set the user name to use
           tuscTrustedUser.setUserName(UsernameAsString);
           tuscTrustedUser.setSession(session);
           tuscTrustedUser.execute();
           session =  tuscTrustedUser.getSession();
    I want to understand how to do that for MDM Web Services.
    I didn't see any method accepting this user name while calling the web service method / creating client object.
    So that link is still missing.
    Appreciate if anyone can help me with that.
    This is for MDM 7.1
    Thanks,
    Parvinder

  • MDM Web Servise Generator

    I am trying to access the web service generator by entering the following URL :
    http://<server>:<Port number>/mdm/WSGenerator
    However, when entering the above URL with the server & port, i get the following error:
    "Resource not available".
    Could you tell me how to resolve the issue & access the web service generator?
    Thanks,
    Arvind

    Hi Arvind,
    Applications are case-sensitive, please try
    http://<server>:<port>/mdm/wsgenerator
    Regards,
    Jitesh

  • Exception obtained when invoking a web service generated with JDeveloper

    Hello,
    I tried to create a synchronous BPEL process that invokes synchronously a Java Web Service created with the JDeveloper. The web service is wrapped around a regular Java class. The new created BPEL process is successfully compiled and deployed on the server. But when I try to initiate a test instance of the process in the BPEL console, after I fill the input parameter for then process and push the "Post XML Message" button, I obtain the following error:
    Your test request generated the following exception/fault:
    BPEL Fault: {http://oracle.com/cde/util/Top300DAO.wsdl}org.apache.wsif.soap.fault{org.apache.wsif.soap.fault.object=java.net.ConnectException: Connection refused: connect}
    I looked at flow and it throws the exception when it tries to invokes the web service generated with JDeveloper.
    Do you have any hints, ideas? Thanks a lot in advance for your help.
    I want to also say that the proxy settings for the BPEL server and designer are filled. I think that they are ok because I succeeded to start an instance of another process that calls synchronously an external Web Service.
    Regards,
    Marinel

    My guess is that this is caused by the WSDL of your service having an invalid service address. Can you please take a look at the WSDL of your service make sure that the location of the address is valid? (we have seen a couple of instances in the past where the generated url did not have the right port information).
    Update that WSDL, restart the BPEL server or from the BPEL console clear the WSDL cache and re-initiate your flow.
    Best,
    Edwin

  • MDM web services and the MDM BP services

    Hi *,
    I need to know what is the difference between the standard MDM web services and the MDM BP services.  How do I decide which set to use?
    - Kris

    Sorry but what are BP services? Do you mean Business package?
    If yes the approaches are completely different - you use Web Services when you have to customise the application and build your logic/functionality into the app. CRUD operations are procided by Web Services - you need to form your wrapper application from scratch and develop!
    With BP - it involves least development effort bearing in mind that its all standard content and not yet completely customizable. So based on your requirements plan whether to go for Business Package or Web Services or Java API completely...

  • MDM Web Services - Data Types Schema

    Hi,
    I am trying to call MDM Web Services from PI as per our requirement. I need to build a scenario in PI for that. The Web Service documentation only talks about the data types and their strucuture but never said where they are available for download.
    Can any one of you help me in finding them for download or do we have to create them manually? Please refer to the link below for documentation.
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/0068130b0c0487e10000000a155369/content.htm
    Thanks and Regards,
    VJ

    See the thread for information
    Configuration of MDM Web Service
    You can download the webservices from SAP support portal
    Points are welcome if it is helpful
    Koti Reddy

  • Using MDM Web Services

    Hi
    Did any of you work on MDM Web Services? We have a requirement to search on MDM using the web services provided. The documentation talks about how to enable these web services in Netweaver stack but does not have a clue on how to access them using PI.
    Can any one help? Below are the SAP documentation links for the same.
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/018c03166a0486e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/01a2ab3a840486e10000000a155369/content.htm
    VJ

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/soa/soa-management/process-integration/accessing%20master%20data%20management%20web%20services%20through%20process%20integration.pdf
    VJ

  • Can MDM Web Services return qualifier values?

    We are running MDM 5.5 SP06 Patch04 (we will be doing a technical upgrade to MDM 7 later this year).
    I am investigating the MDM web services and came upon a potential problem. In the test harness, I searched for a record, specifying ALL for the result definition and everything seemed to come back except qualifiers; lookup values came back, taxonomy values came back, qualified lookup display values came back, qualified link ids came back, but no qualifier values.
    I searched again on the qualified link record ids in the qualified lookup table and I got the non-qualifiers, which is the expected behavior. The qualifiers have to come back with the main table record, though.
    Are qualifiers not fully supported in the MDM 5.5 web services, or am I not searching properly?
    Thanks for any help you can provide.
    Doug

    Hi Doug
    For me all  are working good.
    Can you look at pages 24-26 from "Portal content development guide"
    https://websmp201.sap-ag.de/~sapidb/011000358700001119612007E
    Regards
    Kanstantsin

  • Problem in using the Web Service generated from BAPI_FLIGHT_GETLIST

    Hi all,
       I am trying to use the Web Service generated from BAPI_FLIGHT_GETLIST. I have got the wsdl file, and trying to invoke it. But, while I can test the BAPI using the Airline ID AA, I can't test from the Web Service using the same data. It shows the error message - "Airline AA not found". Anyone having solution, please help. This is urgent.
    Thanks,
    Anirban
    Message was edited by:
            Anirban Das

    Yes, I am connecting to the same system where we have data..
    Anirban

  • Can MDM web service search results be filtered by tuple values?

    We are currently working with MDM 7.1 SP03 and Netweaver 7.0. Right now, there is a requirement to return a material record from MDM to a Web Dynpro form using the MDM search web service. The other requirement is that the form user can search for a material using material number, sales org and dist channel. Currently, the results include all sales org/dist channel combinations in the material record. Is there a way to filter the results so that only the specified sales org and dist channel are returned to the form by using the web service? For example, if a material record has 2 sales orgs with different dist channels and the user is only interested in one, is it possible for the web service to return the material record and only the one sales org? Or, does this need to be handled by the form? Thanks for any input.

    Hello Steven,
    currently there is no filter functionality in MDM Web services 7.1 for tuple values or qualified
    lookup values.
    For the next MDM release we are planning to have a new operation for retrieving multi tuple
    values as standalone operation, by which the user will be able to filter the
    tuple values by member field's criteria.
    Regards,
    Matthias

  • Question about FlyNet Web service generator

    I downloaded the 30 day free trial of Xcelsius Engage Server so I could check out the FlyNet product.  Can you not just take the compiled asmx and supporting files and drop them to a .Net Web server?  When I do this my Web service returns this error in Xcelsius:
    Error accessing CAL management service.  Please check that the service is running.
    If something needs to be configured on the .Net Web server then it will never work here since I will never be able to convince the server support area to install and maintain it.
    thanks

    Hello Jeremy,
    Web Services generated with our Web service Generator have the connection string encrypted and must be used on the machine they were generated on. You cannot just take the .asmx object etc. and place on another server.
    The Engage Server version of our product also uses CAL Licensing and checks that the Flynet CAL Licence Manager is running on the machine that the Web Service is generated on, it also requires a valid Engage Server key (the Xcelsius Engage Server key) to run.
    Hope that answers your questions. If you need any further information on Flynet Web service Generator then please contact us here at Flynet.
    E.Mail support AT Flynetviewer.com  or you can e.mail me direct.
    [http://www.flynetviewer.com/Default.aspx]
    Edited by: Ian Learmonth on Mar 24, 2009 6:49 PM

  • MDM Web Services - connectivity

    Hello
    I deployed the MDM web services on the portal
    and I am trying to test the web service - update BP
    the message that I get is
    Problem while connecting to MDM repository BP on server server_name with user name
    it seems like the user is empty even tought I have configured it in the j2ee
    according to the MDM web services guide
    any ideas?
    thx
    Shai

    Hi Shai,
    Make sure that you enter the correct Userrname and password when doing the configuration in the VA,for that particular Webservice.
    You need to mention the credentials of the MDM created Username and pwd.
    Additionally can also refer the below links:
    https://websmp102.sap-ag.de/~sapidb/011000358700001119812007E
    https://websmp102.sap-ag.de/~sapidb/011000358700006427302006E
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20e06073-f485-2910-adb1-9a197bf98994(MDM webservice)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30a97ac6-c884-2910-c6ad-bae0de29e67b(MDM Webservice)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Can MDM Web Services pull rich content?

    Is it possible to pull images, PDF's and other rich content out of MDM using web services?  We are attempting to find the best method to front the information from our MDM repository to a Ecommerce website.  This is a non-sap website built on .NET 4.0 framework so .NET API's did not work since SAP only supports .NET 3.5.
    What options should we consider to retrieve our catalog data to an external site?
    Thanks in advance

    Hi Klimek,
    I don't think current MDM web service support rich content retrieval, you have to use kinds of API to implement this function. Considering the fact your .NET framework doesn't work, you can try to encapusulate this part of function into  the web service by using JAVA API, and deploy the customized web service onto the relevant server.
    I'm not sure whether we could retrieve the binary data from database level, anyway you can take a try.

  • Support for xs:date types in web services generated from EJB components

    I need to generate a Web Service from an EJB session bean based upon EJB entities generated from the Oracle 11g database that contain DATE type columns.
    JDeveloper creates java.sql.Timestamp types in the EJB Session bean and this results in an exception error when I try to generate a web service from this bean via webservice annotations:
    java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
    java.sql.Timestamp does not have a no-arg default constructor
    I expected the web service wizard to generate argument types xs:dateTime or xs:date so this was an unwelcomed surprise.
    I tried manually adding a method to the session bean with java.util.date arguments and had no problems with the web service wizard that correctly created xs:dateTime arguments. Is there any particular reason why the EJB wizard does not generate java.util.date arguments or handle java.sql.Timestamp without failing with an exception?
    Since I begin with database tables and generate EJB entity classes and then web services with the Jdeveloper wizards it seems to me that there is a problem here in JDeveloper. Would you agree?
    There are several possible more or less appealing workarounds, such as doing manually adding methods to the EJB facade with java.util.date arguments and doing the conversion from/to java.sql.timestamp manually. Is this a reasonable approach or does JDeveloper support date/time for Date columns in some other way that I have missed?
    Very Grateful for any comments or suggestions.
    Edited by: user10601664 on May 2, 2009 1:14 PM
    Edited by: user10601664 on May 2, 2009 1:43 PM

    Checkout this example:
    http://www.manojc.com/?sample3
    public class HelloWorldService{
    * @wlws:exclude
    public void dontExpose(){
    Regards,
    -manoj
    http://manojc.com
    "Jacob Anderson" <[email protected]> wrote in message
    news:4036581e$[email protected]..
    >
    hello,
    I created the descriptor file for a web service that had a protectedmethod in
    it and noticed the protected method showed up in the descriptor file!Should
    the "source2wsdd" task only output PUBLIC methods as service actions? Isthere
    any way to specify methods to be 'ignored' when generating the webservices descriptor
    file?
    here was the generated descriptor XML:
    <web-service name="BindingService"
    protocol="https"
    style="document"
    targetNamespace="http://www.foo.com/ws/BindingService/"
    portName="BindingServicePort"
    uri="/BindingService"
    portTypeName="BindingServicePort">
    <types>
    </types>
    <wsdd:type-mappingxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdd="http://www.bea.com/servers/wls70">
    <wsdd:type-mapping-entrydeserializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec"
    type="xsd:anyType"
    class-name="org.w3c.dom.Document"
    serializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    <components>
    <java-class name="BindingService"
    class-name="com.arrow.ws.vendor.BindingService">
    </java-class>
    </components>
    <operations>
    <operation name="getConfigName"
    component="BindingService"
    method="getConfigName()">
    <params>
    <return-param xmlns:typeNS="http://www.w3.org/2001/XMLSchema"
    location="body"
    type="typeNS:string"
    name="result"
    class-name="java.lang.String">
    </return-param>
    </params>
    </operation>
    </operations>
    </web-service>

  • How to Call Livelink Archive Java Viewer(IXOS-JavaViewer Applet )

    Hi,
    I want you to teach,How to call Livelink Archive Java Viewer(IXOS-JavaViewer Applet)
    I want to call it in the following images.
    When the button is pushed, I want to call Livelink Archive Java Viewer.
    The method was not able to be taught though it inquired of the help desk of
    IXOS.
    Please teach me!
    Reagard

    Hi Tomohiro,
    Is this issue being resolved? which version of ixos server and viewer are you using?
    regards,
    Jess

Maybe you are looking for

  • My photos looked great but when I made a book they all appeared to be corrupted in the pdf preview?

    My photos looked great but when I made a book  in iphoto 09 they all appeared to be corrupted in the pdf preview? There is a white triangular shape with random  horizontal lines running through each photo in the ibook preview.  Took it to the Genius

  • How to use Jco to read a transparent table?

    For example I want to use java to read table T002, I can use Jco, but does anybody know how to use Jco to read a data table? Best regards, Lament

  • How can I activate an old version of Adobe Encore (1.5)?

    I am trying to re-install my purchased version of Adobe Encore 1.5.  I realize this program is several years old and no longer supported, however, it still suits my needs and I would like to continue using my purchase.  Since the activation site is n

  • Working/deployed project suddenly stops

    I've had the odd experience that a project stopped working... in different stages (?) First I could not "run" the project from studio2 ... deploying did not work so I created a .war and deployed through the admin console. Now I've suddenly could not

  • New iMac/Lion

    I am thinking about getting the new iMac that just came out (May 2011). Being that Apple will be coming out with the new OS (Lion) "this summer", should I wait for that or purchase now?