General queries related to implementing the web service

Hi all,
I am new to web services, so I would like to get some of the queries solved which I am facing as of now.
- If in a function of web service, there are three parameters defined, in which one is input parameter while remaining others are output parameters, then from the client invoking that web service has to provide only the input parameter as an argument or all the three arguments should be provided?
Please let me know.
Thanks

I really can't say about the input / output parameters. My guess is that you can't really have ByRef output variables, because the web method call is marshalled into XML and you only get a reply in XML based on the return type of the web method. What I'm trying to say is: only use the method's return value to receive output. Create complex Objects that can be mapped to XML to do that.
The way to call the web service from java is to parse the WSDL document for the web service and see what kind of input messages the web service requires and what type of output messages it produces.
As far as I know there are two ways to parse the WSDL.
1) If you know the location of the WSDL during development you can use it as an input to tools like wsimport in order to create a Service Endpoint Interface.
2) If you only know the WSDL location during runtime, you have to parse the document either by DOM/SAX etc either by using libraries such as wsdl4j
http://sourceforge.net/projects/wsdl4j
I hope I've helped.

Similar Messages

  • Implement the web-service API on an external service desk

    Hi,
    I want to implement the web-service API on an external service desk
    system.
    I am working with the IMG and got to the point where I define a logical
    port. At this point I need the web-service to be implemented on the
    external system.
    I have web-service API documentation and also read note 962383 - but I
    did not find any specific instructions how to implement the web-service.
    Can you assist me with documentation for the web-service implementation
    on external system procedure?
    or if someone can share a step-by-step - it would be great.
    Thanks,
    Shelly

    Hello Shelly,
    Please use the following link to Read a blog Service Desk Implementation Guide Part II
    Service Desk Implementation Guide Part II
    This blog describes the following.
    1) Integrate New data in the Service Transaction
    2) Implement new action: send mail to creator on message modification.
    3) Configure an interface to an external service Desk
    4)Implement a new action that send the message to the external system and change automatically the status.
    Hope it helps.
    Cheers,
    Satish.

  • (261936172) Q general Where are the Web Service source files?

    Q <general> Where are the source files for a Web Service created
    with WebLogic Workshop stored? How do I deploy the Web Service
    on a different WebLogic Server? Is there a way to bundle the
    Web Service project files manually to distribute them?
    Is there a way to configure the directory where Workshop stores
    the files?
    ANSWER: (by Adam Fitzgerald, [email protected]) The .jws files are stored
    in the project folder. This can be located on a local system, although by default
    they are in c:\bea\wlserver700b\sample\workshop\applications. The Web Service
    structure is understood by WLS 7.0 so by archiving the appropriate folder you
    can transfer the Web Service in its entirety from one deployment to another.

    Hi Dean,
    In SharePoint 2013 Designer, the help files are online. They provide tons of general information regarding SharePoint Designer 2013.  You can also find help files at:
    http://technet.microsoft.com/en-us/library/jj219638%28office.15%29.aspx .
    And find a great set of information on SPD 2013 and the new Workflow architecture here:
    http://msdn.microsoft.com/library/office/jj163986(v=office.15)
    More information, please refer to the link:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/07/welcome-to-sharepoint-designer-2013-customer-preview.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • What is the most up to date implementation of web services in Java?

    I'm completely new to web services and just got confused. I installed Sun App Server 9 Update 1 Patch 1 and successfully deployed some simple web services with it. Later I found sth that is called Web Services Developer Pack 2.0 but it can't use Sun App Server 9 as a container ... and requires the older version (8.1 as far as I can remember). Does it mean that JWSDP 2.0 is out of date ... and Sun App Serv 9 has bult-in web services implementation?
    Please can anyone highlight me this subject?
    Thanks!
    Artur

    ok ... just answering my own question ;)
    that's what I found on sun's website:
    the Java Web Services Developer Pack will no longer be developed as a discrete release vehicle for the Web services and XML technologies that the Java WSDP shares with Project GlassFish.
    The current release of Java Web Services Developer Pack, Version 2.0, contains the new JAX-WS 2.0 EA, JAXB 2.0 EA, and SAAJ 1.3 EA implementations, the "integrated stack" for Web services. These components are now available as FCS-quality releases in Project GlassFish.
    as far as I know ... correct me if I'm wrong ... Sun App Server 9 is based on Proj Glassfish.

  • Implementing differents web services in the same composite

    hi everybody,
    what are the bests practises to implement differents web services in the same composite:
    - creating one WSDL with differents portTypes and expose one web service for each portype
    - creating differents WSDL for each web services
    Thanks,

    Hi
    I would prefer different WebServices for each set of Operations. Please note that you can have multiple operations with different input and output xsd parametes. So its like One WebService -> One Port -> Multiple Operations. Only draw back is, you have to deploy all these webservices as multiple WAR files. Or one big EAR that has all these WAR Files.
    I tried once One WebService -> 2 Ports -> Each Port with its own set of operations. I ran into problem when I tried to generate client for this webservice. The JAXB generated classes was odd and this did not work.
    There may be some other option also. Hopefully someone can share their thoughts.
    Thanks
    Ravi Jegga

  • Process for adding a boolean option to the web service API

    Hey guys,
    Here's a little background:
    I'm currently working on adding an optional "strict" mode to some of the unmarshalling functions in SchemaMarshaller that will throw exceptions when receiving bad data for certain fields, and also improving the date handling while I'm at it (I want null instead of mangled dates when receiving bad data when strict mode is off).
    This is for my benefit at the moment as I'm tired of spending time debugging Flex code when XFire and Oracle are spitting out rubbish (like empty xsd:DateTime nodes, DateTimes in xsd:Date nodes, etc) - but I'm sure other people would like to use it too while we don't have a response validator, so I'd like to do it in a way that I can submit as a feature request (with patch) on Jira.
    My questions are about the procedure for stuff like this- where should this option be made public in the API, and who would I talk to about it? Or would it be best for it to always be strict? - That's how I'd like it :) Perhaps it should just log errors when it encounters bad data?
    This is the first thing I'd like to "add" to the SDK rather than a simple bug-fix, so I just want to do things in a kosher manner. Sorry if I come across like a total noob :)
    Cheers,
    -Josh
    "Therefore, send not to know For whom the bell tolls. It tolls for thee."
    :: Josh 'G-Funk' McDonald
    :: 0437 221 380 ::
    [email protected]

    Hey Josh,<br /><br />I'm swamped at the moment but appreciate your interest and your<br />contributions to Flex and WebServices thus far. I'll try and get some<br />time to look into your specific request and what you're hoping to do at<br />the code level, but to answer your question about test cases, you should<br />consider the NIST testsuite for XML Schema datatypes.<br /><br />BlazeDS has historically maintained the WebService implementation, so it<br />appears their test case for NIST based schema tests starts out here (and<br />refers to many data type test cases in the /nist subdirectory).<br /><br />http://opensource.adobe.com/svn/opensource/blazeds/branches/3.0.x/qa/app<br />s/qa-regress/testsuites/flexunit/src/tests/flexunit/xml/NISTXMLSchemaTes<br />t.as<br /><br />Pete <br /><br />________________________________<br /><br />From: [email protected] [mailto:[email protected]] On Behalf Of Josh<br />McDonald<br />Sent: Tuesday, July 08, 2008 8:21 PM<br />To: [email protected]<br />Subject: Re: Process for adding a boolean option to the web service API<br /><br /><br />A new message was posted by Josh McDonald in <br /><br />Developers --<br />  Process for adding a boolean option to the web service API<br /><br />Yeah I knew it'd have to be somewhere outside of SchemaMarshaller, as<br />it's [ExcludeClass] anyway so end users don't see it, nor is it<br />documented in the api docs. Just wasn't sure where it should be. I'll<br />have a think about it some more when I get some down time to work on it,<br />but webservice was where I was thinking it should be too. Didn't think<br />about having it settable on operation as well though, so thanks for that<br />:)<br /><br />Anybody know a good source of valid values for various XSI types (date<br />and DateTime mainly) for testing purposes? Or even who I should contact<br />to get access to that sort of thing? I assume the W3C will take 6 months<br />to answer me, and the answer will be "buy our $10,000 compliance testing<br />suite" or something along those lines.<br /><br />-Josh<br /><br />On Wed, Jul 9, 2008 at 9:46 AM, Matt Chotin <[email protected]><br />wrote:<br /><br /><br />     A new message was posted by Matt Chotin in<br />     <br />     Developers --<br />      Process for adding a boolean option to the web service API<br />     <br />     I think for a top-level user option I would put the new option<br />on the mx.rpc.soap.Operation class (I think that's the name).  You'd<br />then have that propagate through to the underlying schema classes as<br />they are used.  I'd then also add an option to the WebService class<br />itself, and basically in the Operation it should see if it has its own<br />value set and if not check the value on the WebService.  We do this for<br />a couple of other flags too I think.<br />     <br />     End users in general wouldn't look at any classes other than the<br />WebService and maybe the Operation classes, so asking them to set<br />options on the schema classes themselves probably wouldn't work.<br />     <br />     Matt<br />     <br />     <br /><br /><br /><br />-- <br />"Therefore, send not to know For whom the bell tolls. It tolls for<br />thee."<br /><br />:: Josh 'G-Funk' McDonald<br />:: 0437 221 380 :: [email protected] <br /><br /><br />________________________________<br /><br />View/reply at Process for adding a boolean option to the web service API<br /><a href=http://www.adobeforums.com/webx?13@@.59b5be89/1> <br />Replies by email are OK.<br />Use the unsubscribe<br /><a href=http://www.adobeforums.com/webx?280@@.59b5be89!folder=.3c060fa3>  form<br />to cancel your email subscription.

  • Implementing a Web Service

    HI All,
    I have a requirement in which I need to create BP and BP Relation Ships in CRM from a legacy system.
    This scenario needs to be implemented via a web Service.
    This will be my first task on the Web Service. I want to know what should be the approach for this, major steps etc.
    Please share your expertise.
    Dave

    HI Robert,
    I have created my FM Finally and created a web service. Its all working fine. If i go to SOAMANAGER i am able to test my web service via Web Service Navigator and it is working.
    Now, when i open the Service URL in a new browser, Nothing is getting displayed.   "Internet Explorer cannot display the webpage "
    I think i need to publish this service some how. In CRM how i can do this?
    do you have any idea?
    Dave

  • How to code in java to use the web services of CRM

    Hi,
    I am new to CRM on demand web services. I want to develope a java J2EE application to insert some lead data into CRM on demand. But i have no idea of how the wsdl provided by CRM can be converted to a java class so that i can use the API's provided by them in my program. I am using Eclipse Galileo IDE for my java application development. Can any one tell me the way to reference the wsdl in my program or any other way to build my application.
    Please help me out.
    Thanx in advance.

    May be it's the 'stub' you should be looking for.
    Any Account related queries/creations - AccountStub
    --> Query : Populate AccountQuery, populate AccountQueryPage_Input, call accountStub.accountQueryPage(input);
    --> Creation: Populate AccountData, populate AccountInsert_Input, call accountStub.accountInsert(input)
    It's the same procedure for other objects like Contact, Lead, Opportunity.
    I worked on other web-services using Axis2, and 'Stub' has been the one which we use to connect to the web-service.
    Edited by: 838315 on Mar 30, 2011 11:17 PM
    Edited by: 838315 on Mar 30, 2011 11:59 PM

  • Top down approach for creating the web services in NWDS 7.1

    I am trying to develop a web service in top down approach.
    1) I created a Dynamic web project.
    2) Created a WSDL File using the WSDL Graphic editor.
    3) Now i am trying to create the Webservice from the WSDL file ,  i am getting the following error
    The SAP Netweaver Web service runtime does not support the service project type Dynamic Web Project.
    How do i created the web service from here on.
    Regards
    ABS

    In NWDS 7.1 i used to create webservice.I followed the process given in sap help.
    steps:
    1.      In the SAP NetWeaver Developer Studio, you create an EJB Project and an enterprise application project for the Web service.
    2.      In the EJB Project, you create an EJB Session Bean 3.0 and implement the business logic of the Web service.
    3.      You expose the EJB Session Bean 3.0 as a Web service, using the Web service wizard in the SAP NetWeaver Developer Studio.
    4.    You deploy the Web service endpoint on the application server.
    Thanks,
    Murthy.

  • Errors when compiling the web service (SAP Web Service Design Tool)

    After downloading and installing the SAP de Web Service Design Tool (for Crystal Reports Server) I created a connection, a simple query and was able to deploy a web services. I tested the web service with an Xcelsius dashboard within InfoView. Thereafter I created a second connection (other name but same ODBC connection / server) and created another simple query with two date(range) parameters and a group by year and month function in order to do a select count(). It executes fine, but when I try to publish the web service I get an error.
    There are errors when compiling the web service.
    Is does not say whatu2019s wrong or how I can solve this problem.
    Who can help me?
    Some notes:
    1) Within expert mode I used a MONTH() SQL function which does not show in the normal mode.
    2) It seams that the u2018administrationu2019 of Web Service Design Tool got u2018corruptedu2019 after only creating the two connections, queries and services mentioned above. I believe so because I could select one of two queries when I created the second service, but within the current connection I had only one query.
    Thanks for any help,
    Ron
    ADDITIONAL INFO: The parameters seam to be the problem. After removing the parameters I can publish the service. But without parameters it is NO SOLOTION.
    Edited by: RonKoudijs on Aug 26, 2010 6:28 PM

    Hello Taylan,
    I think the error that you received was due to packaging issues.I placed the
    UtilClass.java file under a directory called data which was present under
    the project directory.
    When you want to access a java class, you can either place the compiled
    class file in the WEB-INF/classes folder or you can place the java file
    under the project directory.
    I have attached the sample project that I created with your files.
    Let me know if you have any other questions.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "taylan" <[email protected]> wrote in message
    news:3d6351b0$[email protected]..
    >
    I am trying to write a simpe web service in WebLogic Workshop, but havingan error
    which I could not understand. Could you please help me? Thanks in advance.
    Regards,
    Taylan
    My web service code is like belows:
    import weblogic.jws.control.JwsContext;
    import data.*;
    public class WebService1
    /** @jws:context */
    JwsContext context;
    * @jws:operation
    public UtilClass testType(UtilClass tTest){
    UtilClass returnObj=new UtilClass();
    if(tTest.getName()!= null){
    returnObj.setName(tTest.getName());
    return returnObj;
    and my UtilClass is placed in the data directory under the same directorywith
    my web service code. It is a simpe class as belows:
    package data;
    public class UtilClass
    private String name;
    public void setName(String name){
    this.name=name;
    public String getName(){
    return name;
    However I got an error when I try to compile the webservice class. Theerror is
    like belows:
    File Line Message
    WebService1.jws 0 Resource found on system classpath: data.UtilClass
    Build complete - 1 error(s), 0 warning(s)
    [ngroup.zip]

  • Why is the web service cannot be invoked?

    Hi Experts,
    Scenario: I have created a web service from a function module from SAP CRM using SOAMANAGER. I wish to invoke this web service from Data Services.
    I have tried to invoke the web service using the 2 types of data store avaible in Data Services:
    - One Web Service datastore
    - One Adapter datastore
    Both have the same WSDL URL and I see the defintion of the web service in both. Fine.
    I created 2 dataflows:
    - One invoking the function from the Web Service datastore
    - One invoking the function from the Adapter datastore
    When I execute the batch job, I get different errors in the 2 dataflows, but the root cause seems to be the same: it cannot access and execute the web service.
    - In the dataflow using the function from the Web Service data store, I get the error RUN-248005 There is no response for thte web service. Ensure that the network, web server, and service are running properly. Also ensure that the service call time out is set properly
    - In the dataflow using the function from the Adaptor data store, I get the error RUN-058110 Error calling function. Web Service client unable to invoke Web Service Server. Error: (0)null
    I have checked the Data Integrator documentation and nothing is mentioned on what is a proper time out setting.
    I have followed the white paper of Michael Eaton [Building Data Integrator Real Time Jobs and Calling Web Services|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20bd5e60-11f9-2b10-2bbb-b5109cceff08?quicklink=index&overridelayout=true]. Nothing is mentioned in there in regards of special configuration. Yet, my scenario is a bit different here as I am using and external web service and not a published web service from Data Services.
    Is there some Data Services configuration missing here? The web service is not secure: it as the lowest level of security, which is NONE! :).
    What am I am missing :(?
    Thanks a lot & Best Regards
    Isabelle

    Hi Manoj,
    Thanks for the tip, unfortunately it still doesn't work.
    I had posted a thread to the web service forum [Re: How to get the http.proxyHost and http.proxyPort?;. I was given the tip to invoke the web service using SOAP UI ([www.soapui.org]). I was able to invoke my web service and execute the service successfully! That's one win!
    Yet, in DS it still doesn't work :(. I have:
    - Added the Dhttp.proxyHost and Dhttp.proxyPort in the Additional Java Launcher Options in DS Management Console. I am not sure I have the right ones though. I think I might have the wrong values. I will recheck. Yet, when using SOAP UI, I don't need it so I am wondering why DS needs this.
    - I have added the user/password in the adaptor datastore where the WSDL is specified.
    I couldn't find any documentation related to the possible options for Additional Java Launcher Options. Where is this documented?
    Thanks for your help & Best Regards
    Isabelle

  • (261936172) Q general Are there seperate logs for web services?

    Q<general> Are there seperate logs for web services?
    A<general> It does not appear that there are any separate logs for web services.
    There is knex.log file that records the errors that occur during deployment of
    your .jws files. There is also the standard server log that provides information
    about server status - you can write to this programmatically if you wish. There
    is also the access.log file which record all the HTTP requests so this might cover
    some of your web service requests that are transmitted over HTTP.

    Maybe the user has deniad Access to the Runbook, check in Runbook Designer.
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Methods do not conform to the  restrictions imposed by the web service impl

    Anyone know what this message means?
    Im using JDev 903 and OC4J 903
    Error:
    These methods do not conform to the
    restrictions imposed by the web service implementation
    Offending methods:
    public abstract com.bayer.cropscience.nafta.uscrop.hierarchymaint.HierarchyLevel[] com.bayer.cropscience.nafta.uscrop.hierarchymaint.IHierarchyPersistenceWS.getHierarchyLevelsForHeaderGK(double)
    Ive checked all I can. Im using JDev to generate web services from an existing class. Other methods work fine, but I dont know how to handle this error.
    Thanks,
    Mark

    Anyone know what this message means?
    Im using JDev 903 and OC4J 903
    Error:
    These methods do not conform to the
    restrictions imposed by the web service implementation
    Offending methods:
    public abstract com.bayer.cropscience.nafta.uscrop.hierarchymaint.HierarchyLevel[] com.bayer.cropscience.nafta.uscrop.hierarchymaint.IHierarchyPersistenceWS.getHierarchyLevelsForHeaderGK(double)
    Ive checked all I can. Im using JDev to generate web services from an existing class. Other methods work fine, but I dont know how to handle this error.
    Thanks,
    Mark

  • Implementing Multiple Web Service operations

    Currently using JCAPS 5.1.3.2. Supposedly there is a way to implement a web service with multiple operations without using bpel. I haven't been able to figure out how to do this except by creating multiple WSDLs, each having one operation which invokes one jcd. Is there a way to do this with one WSDL?
    Thanks.
    Sharon

    Sharon,
    when you import a WSDL, you have to export the XSD nodes to an OTD in order to use them in a WebService Collabale JCD. With this JCD you create your own operation.
    Normally you have a Request and Reply element in your WSDL.
    I think you can define more of these "operations" in your WSDL which you can export to XSD nodes and then use in separate JCDs (= operation).
    You can handle only 1 operation per WebService collable JCD.
    Hope this helps some.
    Regards,
    Madere

  • Can I  load Java classes generated by the Web Service Proxy Wizard?

    Hi gurus,
    I am very new to Oracle JDeveloper and I have mainly used it to create and debug PL/SQL procedures. My client app is written in PowerBuilder 11 (Sybase), which claims that it will create a datawindow from a web service. Well, it turned out that PB can only handle simple stuff (it works with a very simple wsdl from the internet) but can't handle more complex ones that we need to use. So I am thinking about using JDev to create the web service proxy for the web service and then load it into Oracle as a Java stored procedure so that PowerBuilder can call the procedure. JDev succsfully generated the proxy and a few Java classes. My question is, do I need to load all the classes into the database? If yes, will the reference to the package work? For example, in a JDev generated class (the soap client class), it has package MyJdev.proxy; at the top. Or, will it work if I load all the classes included in package /MyJdev/proxy into the database?
    Thank you very much for any help.
    Ben

    Thanks again, Bruce.
    What I meant by SOAPElement is that one genereated Java class has this and this class also has the setter for this like this,
    public void setSelection(javax.xml.soap.SOAPElement selection) {
    this.selection = selection;
    And here is the whole class,
    public class CaseSearchByPartyRequest implements java.io.Serializable {
    protected java.lang.String schemaVersion;
    protected java.util.Calendar messageProducedDateTime;
    protected javax.xml.soap.SOAPElement selection;
    protected Restriction restriction;
    public CaseSearchByPartyRequest() {
    public java.lang.String getSchemaVersion() {
    return schemaVersion;
    public void setSchemaVersion(java.lang.String schemaVersion) {
    this.schemaVersion = schemaVersion;
    public java.util.Calendar getMessageProducedDateTime() {
    return messageProducedDateTime;
    public void setMessageProducedDateTime(java.util.Calendar messageProducedDateTime) {
    this.messageProducedDateTime = messageProducedDateTime;
    public javax.xml.soap.SOAPElement getSelection() {
    return selection;
    public void setSelection(javax.xml.soap.SOAPElement selection) {
    this.selection = selection;
    public Restriction getRestriction() {
    return restriction;
    public void setRestriction(Restriction restriction) {
    this.restriction = restriction;
    this.selection is the request that I think I need. And here is the static main method of the soap client class genereated.
    public static void main(String[] args) {
    try {
    MyJdev.proxy.SoapClient myPort = new MyJdev.proxy.SoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    So, if I need to send the request to the web service, do I need to create the request, correct? I have done it through AQ and Messaging Gateway and works fine by manually creating the request xml in PL/SQL, but now I need to get it to work sychronously from the UI. I believe that I need the request (SOAPElement) because that is the only way that I can supply the parameters. I have not see any setters for the parameters other than some setters for user name and password.
    Did I get something wrong here? If I don't supply the "selection", will JDev do it?
    Thanks.
    Ben

Maybe you are looking for

  • Tranfer of a PDF file from Backend to Client

    Hello! everybody I do have a group of people that go to work on the field. They have a work plan to do.  This work plan is a pdf file. Somebody has any idea how to pass a pdf (or an image) file from the backend to the client (Device Mobile) when I do

  • Saved pattern swatches as ASE have I lost them?

    Hello I created some pattern swatches in illustrator CS6 and saved them as an ASE file. When I try to use them , only the files I'd saved as Ai are offered to me. Does the saved as ASE file only save the colours used and not the actual pattern? Have

  • Voice commentary advice on slideshows

    Hello. I use both Adobe Encore DVD 2.0 and Adobe Audition 2.0. Need some advice. I have a slideshow that requires different voice commentaries on each slide with music. I know I can just multi-track in Audition (voice and music). What's the best way

  • Nokia c2 02 -- apps not opening-- urgent

    I updated my nokia c2 02 firmware  to 7.29 before 2days. Today while using nokia browser it said a new nokia browser is available to download. I downloaded after the download was complete it said "invalid application" and now nokia browser does not o

  • I purchased the CS6 Design standard Teacher edition and am wondering if I can install it on a second computer?

    I purchased the CS6 Design standard Teacher edition and am wondering if I can install it on a second computer?