Help required... web services

hello...!!!
How can I use MySql db for webservices? do I need to set context variables in deploytool? which string I'll need then?
Also, I want to work my web service behind the firewall. I want to use jax-rpc tech. But I have no firewall environment to test the service. So, if I create a webservice, is it guaranteed that it will work behind firewall? (idea is access the sources behind firewall in company's intranet through internet, but securely means only authorised person should be able to access). This is my academic project. I donn know anything abt webservices. Also, can u plz mention other tech (than web services) which can be used but the advantages of web services over them (to convince my tutors in proj presentation)
Thanks in advance..
.Mohit

"if I create a webservice, is it guaranteed that it will work behind firewall? "
Yes. Since the port 80 on the enterprise firewall is usually open. Then, as long as you choose SOAP as the medium to transport messages, which is sitting on HTTP, the conmunication should work well.

Similar Messages

  • Help:Invoke web service after receiving a user task response

    Hi, All:
    We encountered a problem while developing user task. The detail is as follows:
    We need to invoke a web service after a user task's response, that is to say, the web service needs some data from the response of the user task.
    Take the loan flow tuturial as a example, what we need to do is to invoke a web service after the BPEL process get the start loan APR. the web service needs the APR for its input message. how can I handle this situation?
    Thank you very much for your help!

    Thanks for your immediate response Jan Vervecken.
    I have created the Data Control from web Service proxy and I am able to recieve the output from the web Service.
    But, Currently I am invoking the webservice process method by a command button which populates my SelectOneChoice.
    My requirement is to invoke the web service 'process' method by value change event in the SelectOnechoice control.
    So, Can you pls. let me know how do I bind the web Service method 'process' to value change event of SelectOnechoice control?
    Thanks and Regards,
    Sandeep T

  • Help starting web services

    Hi, I am new to web services and after reading a lot of literature on the subject I am completely lost. I am running Axis2 1.3 and I have just got my WSDL2Java to work. I am using Eclipse and now also have the wsdl plugin working.
    However the problems I have is that after I create the stub I have many errors, all of which are from missing imports...org.apache.axis2.... I was wondering if anyone has any suggestions for sorting this out. I cant find these files anywhere on my system.
    I may have made a mess up ofinstalling Axis but I think its correct. I would really appreciate some basic help/tutorials on accessing a service from the internet suhc as aweather forecast (http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=50) to get me started as i have been trying now for 3 weeks with no luck. I have tried to follow tutorials and code examples but I still have many probelms.
    Any help would be much appreciated.
    J

    Hi,
    Im not great with Eclipse and the errors are all to do with org.apache... such as this one: extends org.apache.axis2.client.Stub. It says tehse canot be resolved to a type. I have tried to import the libraries but I cannot find the ones required. It appears all my WSDL2Java createions require this package but I cannot find it anywehre.
    Do you know what these are and which ones i need to import?
    Sorry its a bit vague, i think/hope im missing some libraries, i just cant locate them on my machine or the web and I am stuck until i get around this problem.
    Regards, j

  • Multiple selection in value help  with Web service

    Hi All,
    I want to get data from web service and store in data base. I created input form with set of inputfields. For some input filds in that input form, I want to get value from web service.So I have used value help wizard. I followed below link to create value help wizard for web service.
    Value help wizard working with java web service ?
    While creating value help, it is only showing 'single selection' option. It does not showing any other options. Here I want to get multiple values from value help. How can I acheive this?.
    Thanks,
    Venkatesh R

    Hi Venkat,
    Try the below links for value help in visual composer.
    Visual Composer: Value Help Data Service
    Choosing Multiple Values within Visual Composer
    http://help.sap.com/saphelp_nw04s/helpdata/en/50/91db4238bbf140e10000000a1550b0/frameset.htm
    Regards
    Basheer

  • Help? Web service crashes whenever I check "enable SSL"

    Whenever I try to enable SSL for one of my virtual domains, Server admin reports
    "A service has encountered an error"
    and disables web service for that virtual domain.
    Everything was working fine (ftp, webdav, websites, mail).
    So my final step was to try to enable secure webdav via https.
    So I
    * bought a certificate (godaddy $30) for my domain EXAMPLE.COM (no www, since everything is hosted on one box, for email, webdav, ftp we just use "example.com"
    * manually pasted my key into /etc/httpd/ssl.key/server.keyx
    * manually pasted my cert into /etc/httpd/ssl.crt/server.crtx
    * manually pasted the CA cert into /etc/httpd/ssl.crt/ca.crtx
    * entered my pass phrase I used when I made the key
    * used the log file default /var/log/httpd/sslenginelog
    (when crashed the first time I thought the file not being there could be the problem, so I copied another file, and ensured the permissions were the same: owner root, group admin)
    all that was fine. checked the enable SSL box, and clicked Save and that's when it reports the error and disables the virtual domain.
    My server is 10.3.9.
    The first time I used 10.4 admin. When it crashed the service I did a restart on the server, then on the server used the 10.3 admin. Same deal. (Only difference is on 10.4 admin it set my port to 443; on 10.3 it didn't)

    I did get it working. But my recollection of what I did to get it working is fuzzy. I think what I noticed is that whatever I put into the various SSL key fields was not getting saved, so I tracked down the appropriate locations and edited them manually. Sorry I don't recall the specifics.
    Another thing I do remember is that I was unable to CHANGE an existing "site" setting from port 80 to 443 -- I had to delete the entry, then re-create it from scratch with the SSL settings and PORT #.
    Hope that helps.

  • Help with Web Services

    hi,
    am trying to call a web service from a particular WSDL, i need to use JAX-WS 2.0 as part of this assignment am currently working on, but i just cannot put my head around it and where to start,,
    would i need to just write a client that would call a specific method and pass the parameteres through it ?
    would i need to use annotations ? as i was reading, you only use them if you expose the web service. All i was supplied with is a WSDL, and i need to design an interface using JFrame and call a specific service of my choice and receieve a response back.. and display it back.
    Any helpful tips, suggestions, sample code ??
    thanks

    You can easily work with WSDL2Java class in axis.jar found from apache site
    java -cp axis.jar:commons-logging.jar:commons-discovery.jar:wsdl4j.jar:jaxrpc.jar:saaj.jar org.apache.axis.wsdl.WSDL2Java -va "wsdl file"
    This will create a stub files for the webservice, then you work with that.

  • Please help on Web Services

    Guys,
    I am very new in Web Service and VB.Net
    I downloaded sample source of VB.NET and downloaded WSDL of Service Request.
    What should I do with WSDL? where should this file located?
    In VB.NET sample source,I put server = secure.crmondemand.com also put UserName and Password.After click login,I got error Forbidden
    Could you please advice
    Pitiporn

    i want to enter a lead in Oracle Siebel On Demand through java programming, i got a ref. from below link:
    http://wiki.netbeans.org/attach/J1PodDemoWebservices/jaxws_service_designer.html
    I am using Netbeans6.1 IDE, i follow all steps and incorporate .wsdl file with my Java Project.
    My Problems:
    * i got all classess made by IDE but i donot know which class i should use to enter lead? and how?
    Please help me to solve this problem, my email id: [email protected], Waiting for your reply...
    Thank you very much in advance.

  • Help on Web services

    Hi
    I would like to create a Web DynPro (Java) project using web services and leverage R/3 system for information, but not really sure how web services leverage on the function of R/3 to retrieve and store information. Will be very much appreciated if someone can shed some light on this.
    Thanks
    Rayden

    hi Rayden,
    yeah sure there is some concept called as EJB where we can write our business logic instead of calling FM, also RFC calls are considerd as little expensive,
    check out some info about them here
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/af6e420c48c353e10000000a1550b0/frameset.htm
    follow these links for creating them,
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b5/f5bb805b2e9243ac9a1eafc4ecbd5f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/b127af68234e868cfd4e9f440aa0bf/frameset.htm
    in the above link just understand writing logic in methods and skip part of creating frontend with jsp
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    also check out this (these may not be of great help)
    Accessing  database using EJBs in WebDynpro
    Example for WebDynpro using EJBs
    hope it helps
    let me know if you face problem
    regards

  • Need help with Web Services SDK.

    I am new to Web Services SDK can I get documentation on same.

    For documentation about the BOE XI R2 SP2 Web services go to our DevLibrary: http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    then locate the Web Services topic under which, you will find the necessary info to help you deal with BOE Web Services.
    Cheers
    Alphonse

  • Please help with web services (JSR 172)

    Hello!
    I'm in need of some help. I've only worked with web services some few weeks. I have two web services that I want to access from J2ME.
    Both works nice in regular Java (J2SE). I use axis so with the help of WSDL2Java I got a working client.
    One of them has four operations
        public boolean tryToLoginUser( String username, String password ) {}   
        public boolean tryToLogOffUser( String username, String password ){}
        public boolean createUserAccount( String username, String password ){ }
        public boolean removeUserAccount( String username, String password ){ } The problem is when I want to use Sun's Wireless Toolkit 2.2 and create stubs that way with the Stub Generator. It complains with this
    warning: Operation tryToLoginUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation tryToLogOffUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation createUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation removeUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.What I can tell is I need to put this in my axis deployment descriptor
    <service name="UserWebService" provider="java:RPC" style="document" use="literal">instead of this:
    <service name="UserWebService" provider="java:RPC">This wont work. It don't work with HTTP GET I get this error
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>I doesn�t work with WSDL2Java and when I run Sun's Wireless Toolkit 2.2 to generate stub it complains with
    warning: ignoring operation "tryToLoginUser": more than one part in input message
    warning: ignoring operation "tryToLogOffUser": more than one part in input message
    warning: ignoring operation "createUserAccount": more than one part in input message
    warning: ignoring operation "removeUserAccount": more than one part in input message
    warning: Port "UserWebService" does not contain any usable operationsDoes this mean I can only use one parameter for input in an operation when I use style="document" use="literal" ??
    I understood it that way, so I created a new web service that takes username and password in one String.
    The new web service has four operations
        public boolean tryToLoginUser( String usernameAndPassword ) {}   
        public boolean tryToLogOffUser( String usernameAndPassword ){}
        public boolean createUserAccount( String usernameAndPassword ){ }
        public boolean removeUserAccount( String usernameAndPassword ){ }The problem is that I get this error when running HTTP GET.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>If I get a WSDL2Java client it works (!) if I manually changes the parameter names. I have four operations which all takes
    String usernameAndPassword
    in one String since I can only use one parameter with style="document" use="literal"
    The WSDL2Java automatically set the parameter names to
    usernameAndPassword
    usernameAndPassword1
    usernameAndPassword2
    usernameAndPassword3
    for the different operations. If I manually changes them to all have the name
    usernameAndPassword
    it works. Why doesn�t it work without manual changes? I haven�t tested the code from Sun�s Wireless Toolkit 2.2 Stub Generator yet, but that at least doesn�t give any errors .
    My other web service doesn�t work either if I set style="document" use="literal".
    This web service returns my own classes I have written. It works as I said previously in J2SE with WSDL2Java, but not with style="document" use="literal�. When I set this my byte[] which is returned is null when using the client from WSDL2Java, this wasn�t the case without style="document" use="literal�.
    I also get an error in Sun�s Wireless Toolkit 2.2 that byte[] is not recoigniced. This wasn�t the case with axis WSDL2Java.
    If I put this inside the axis deployment descriptor
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC" style="document" use="literal">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <typeMapping qname="j2melab2:ArrayOfByte"
                                 type="byte[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>                            
         </service>
    </deployment>instead of this
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
         </service>
    </deployment>axis WSDL2Java won�t work anymore. And Sun�s Wireless Toolkit doesn�t work either with this. How can I get this to work with Sun�s Wireless Toolkit 2.2?
    So my questions are:
    Do I really need style=�document� use=�literal� for J2ME?
    Can I only have one parameter as input when I use style=�document� use=�literal� ?
    Why do I need to manally change the parameter names?
    How can I make Sun�s Wireless Toolkit 2.2 understand byte[] ?
    Many thanks for help :) (I have to present a solution in 1 � week to my J2ME teacher L).

    hi,
    i was wandering if you manage to successfully generate the stubs through the wireless toolkit at the end? i am currently having similar problem (i.e., trying to generate stub files based on wsdl from axis)? it seems that the WTK can only handle document/literal format, and so i change the wsdl to that. however, now it complains that it can't handle more than one input part in the message, (which is similar to the problem you had). so did you manage to find a solution to that, or J2ME simply does not support more than one arguement as the input?
    thanks in advance,
    lee

  • Help: Creating web service proxy using JAXB generated domains

    Hi,
    I'm currently doing some investigation considering the use of web services (BPEL) as a complete application backend.
    The application should contain a pojo facade which communicates with some web service proxies. By making a datacontrol
    of the pojo facade, I'm able to expose methods to the client layer.
    I generated my domain objects by using the JAXB Compilation option in JDeveloper. By using that, a java class can be generated
    based on an XSD. Disadvantage of this use, seems to be the fact that the ObjectFactory class, generated by JAXB, is overwritten
    each time I create java classes from an XSD.
    Q1: Is there a solution to prevent the ObjectFactory class to be overwritten? I also could decide not to use it.
    After the domain objects are created, I want to call the actual webservice and receive the response by using the JAXB marshaller
    and unmarshaller. Problem here is:
    Q2: How do I (manually?) create a proxy which calls the web service, by using the domain objects generated by JAXB?
    Q3: An important requirement is that it needs to be simple to switch from several environments (eg from development to test). How
    can I fulfill this requirement in a nice, solid solution?
    Any tips working with web services as the backend layer are welcome!
    JDeveloper 10.1.3.4
    ADF Faces/JSF
    BPEL
    Thanks,
    Koen Verhulst

    repost.

  • Need help developing web services on Jdeveloper

    Hi,
    I'm having some problems developing a particular web service using jdeveloper 10.1.2.1.0 (build 1913).
    The web service is located on a remote computer (windows server 2003 SP1), deployed on a jboss3.2.5.
    I got the following error:
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
    at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:614)
    at mypackage1.PdfGenStub.getConfigurationXML(PdfGenStub.java:189)
    at mypackage1.PdfGenStub.convertDocumentToPdf(PdfGenStub.java:241)
    at mypackage1.PdfGenStub.main(PdfGenStub.java:42)
    The web service is from a product that we have that converts documents to pdf.
    Any ideas ??
    However, I will try to intall the product on another machine that has connection outside the company network to put the WSDL link here for anyone who wants to test it .
    thanks

    Hi,
    Would really help if you could provide the wsdl and also steps to reproduce this exception, for us to try it out locally.
    You could also try to install the latest JDev 10.1.3.1 available on OTN, to see if it works on it.
    Regards,
    Sunil..

  • Urgent help in web services

    Please go to this thread:-
    [http://forum.java.sun.com/thread.jspa?threadID=5281009&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5281009&tstart=0]
    This is posted in web services forum. but till now i didnt get any replies from anyone. If anyone can give a valuable point on this that will be of great help. Any clarifications you need, please ask me.
    Looking forward to your help,
    Geet.

    Hi had a simular question
    synchronous mediator collate response
    Responses suggested that this was not possible in mediator and needed to be done in BPEL
    Robert

  • I need some helps about Web Services & Entity Bean

    Hi everybody,
    Using Jbuilder I can create Web Services object from Session Bean (with Weblogic 8.1).
    I am wondering that: Can I create Web Service object from Entity Bean? Eg: with BMP or CMP?
    If anyone knows how to do, please help me or give me the documents I can refer to!
    Thanks in advance!

    Hi everybody,
    Using Jbuilder I can create Web Services object from Session Bean (with Weblogic 8.1).
    I am wondering that: Can I create Web Service object from Entity Bean? Eg: with BMP or CMP?
    If anyone knows how to do, please help me or give me the documents I can refer to!
    Thanks in advance!

  • Help about web services

    Hi All,
    We use jdev 9i for the apps development.
    We are integrating many applications to talk to each other and get the data .
    For which we are planning to use web services too.
    My question is : Is it possible to call web services from OAF using 9i jdev ?.
    Can any body point me to some docs or tech urls to start with knowing these web services from OAF.

    See this thread in this reference.
    Re: calling web service in Oracle Applications...
    Avaneesh

  • Help: using web services

    Hi all,
    I have oracle content server 10g in a developement enviroment. I want to invoke ocs web services from Bpel 10.1.3.3.
    How can I do it?
    Thanks,
    ale

    Are you asking how to do this from the BPEL perspective, or are you trying to learn something about the services in content server? Content Server can accept SOAP calls for any of its services, but it also has a set of WSDLs that other applications can use for discovery of a select set of the services. You can also add to the WSDL's to enable more services. If you go under the Administration menu in your content server and look for SOAP WSDLS you will see these definitions.

Maybe you are looking for