Developing JSR 172 compliant Web Service

Hi Experts,
I am trying to develop a web service in NWDI (Java), but it should be JSR 172 (J2ME) compliant. The web services developed with NWDI are not getting parsed and results in failure.
Could anyone please share some inputs on the same?
Regards, Kathirvel

Hi Sam,
I haven't worked with this before but I did some quick reading and it looks like you have your work cut out for you, you can't just use the WSDL as is for J2ME...Refer to the "Stub Generation and Invocation" section of the document below:
[http://developers.sun.com/mobility/midp/articles/webservices/?feed=DSC]
Regards, Trevor

Similar Messages

  • Unable to consume a simple SAPWebService error "not JSR 172 Compliant"

    Hi,
    Am trying to consume a simple webservice which was created by exposing a function module. The consumer of this WS is a J2ME application.
    Usually we the framework(or IDE or other tools) will help us in creating the stubs(proxy classes) when provided the WS wsdl URL .I tried in C#.dotnet and i was able to create the stubs and consume it. Now when i try it J2ME ->NetBeans IDE-> STub generator->same wsdl url, i get an error "not JSR 172 compliant". FYI, JSR 172 is the spec for WS consumption by a Java 2 MicroEdition(J2ME) applications[http://jcp.org/en/jsr/detail?id=172].
    My question: How can i make or what are the other settings that i have to do in SOAManager to make this JSR 172 compliant.
    FYI, i just created a helloworld function module in ABAP and created a enter. service. In soamanager i have not done anyother setting other the default settings the comes.
    Any inputs on this would be really helpful.
    Thanks,
    Sam.

    Hi Sam,
    I haven't worked with this before but I did some quick reading and it looks like you have your work cut out for you, you can't just use the WSDL as is for J2ME...Refer to the "Stub Generation and Invocation" section of the document below:
    [http://developers.sun.com/mobility/midp/articles/webservices/?feed=DSC]
    Regards, Trevor

  • How to develop and call Asynchronous web service

    Hi All,
    I need to have a java web service that will be called asynchronously.
    That should execute, once triggered and caller shouldnt need to wait till its completion.
    How to develop and call asynchronoue web service ?
    Thanks
    Saikrishna

    Let your web service start its own background thread (*) somehow and move your business logic from web service to this thread. Then you can return from your web service. The client won't be blocked and your application will run on your server after service callout will be finished.
    I hope that's what you need. Anyway, there is only "asynchronous communication" and nothing like "asynchronous web service". At least from HTTP point of view, every call is synchronous - you have request and response.
    (*) You shouldn't start your own thread since you are in JEE world. Look at documentation for your container. E.g. for weblogic there are workers you can use this way. Or you can choose the other way. I hope that for any container you can just enqueue your web service request to any JMS queue and move your business logic to an appropriate MDB. Then, your web service will be just a simple JMS producer and your web service client won't be forced to wait for business logic to finish.
    Last but not least, next time choose a better forum. :-)

  • Problems developing a pl sql web service

    Hello, someone knows how to develop a pl sql web service to retrieve many rows from a table (NOt ONLY ONE RECORD). I need an example of the function or procedure. I'm using JDeveloper 11g and WebLogic 11g.Thanks!.

    I guess this is what you are looking for:
    http://docs.oracle.com/cd/E23943_01/web.1111/e13735/dbws.htm#CHDGJGJI
    You may want to use "REF CURSOR" for your requirement. Store the result set in a "REF CURSOR" in your webservice.
    From the JDeveloper documentation how to use PL/SQL WebServices.
    http://docs.oracle.com/cd/E24382_01/user.1112/e17455/dev_web_services.htm#CHDFHIHB
    May be you want to try using JPublisher to achieve the code for storing the results of a stored procedure
    http://docs.oracle.com/cd/E24382_01/user.1112/e17455/java_database.htm#CACJBBHH
    Arun

  • How to make WS-I compliant Web Services

    What is Oracle's recommended way to develop Web Services that fully conform to the WS-I standards using PRODUCTION RELEASES of Oracle's software (JDeveloper 10G and OracleAS 10G)?
    This is for a production site and it needs to be supported from Oracle. I assume that using "Developers Preview" versions of Oracle's software is not a solution.
    I was asked by Oracle Norway to put this question on this forum. I hope to have an answer before the end of the week.

    This is only my recommendation - not necessary Oracle's one.
    If you are using 10.1.2, your only option is to use the document-literal message format. The support for this is very limited in JDeveloper for building the server side: there is no wizard, and you will have to write it yourself as a POJA (Plain Old J2EE Application). Check my public blog after the weekend and you should find more info there.
    Your other option are: a) to look at BPEL Process Connect, which should be production very soon - They have good support for literal encoding, in general. b) to look at our current DP3 and double check your GoLive requirement - There is really a lot more available to build complex applications in the JAX-RPC stack.
    Hope this helps.
    Eric
    ps. Even so Rpc-Literal is part of WS-I, it'snot an option if you want to interop with .NET framework 1.1. Microsoft has such support in 2.0 beta with their GoLive license or in Indigo.

  • JSR 168 and Web Services For Remote Portlets

    Hi,
       I have recently joined SAP.In my previous work experience I have worked extensively on the Sun Java Portal Server and was curious about the following
    1.Does SAP Enterprise Portal Server support JSR 168 compliant Portlets.
    2.If yes the Question that naturally follows is:Can portlets(view Components)in a SAP Portal be remote enabled?In other words does SAP portal support WSRP standards.
    3.If the SAP Enterprise Portal has implemented  the JSR 168 specifications then how does the architecture seperate out the Portal engine from the Portlet Container.
    In other words where does the actual wrapping from a HTTPServletRequest to a Portlet Request happen?
    4.The JSR 168 specifications restricts the use of IFrames and many HTML tags in the fragments that are returned by the portlets running in the Portlet Container.Is this taken care of in SAP Enterprise Portal?
    5.Can WebDynpro applications be embedded in a JSR 168 compliant portlet?
    6.How is parity maintaned between portlet session HTTP session and the Applications session?
    7.Does SAP Portal support deployment through a par model?
    Thanks and Regards
    Sujeet Mishra
    SAP Labs India Ltd
    [email protected]

    > 1.Does SAP Enterprise Portal Server support JSR 168
    > compliant Portlets.
    I'd like to know the answer to this question as well. I wrote an email but didn't receive any response. So i guess JSR 168 isn't supported yet?

  • "An error occurred while trying to load some required components. Please ensure that the following prerequisites components are installed: Microsoft Web Developer Tools Microsoft Exchange Web Service."

    Did a LOT of troubleshooting, but not finding suitable solution, still getting same error i referred all below links but not working for me.
    "http://blogs.msdn.com/b/how24/..."
    "http://social.msdn.microsoft.com/Forums/..."
    "http://stackoverflow.com/questions/.."
    "http://tomvangaever.be/blogv2/2013/06/..."
    I am using "Microsoft Visual Studio Professional 2012".
    Can anyone please tell, How can I achieve????
    sharad patil

    Hi,
    Sorry for my delay.
    It seems that this issue was more related with Visual Studio, I suggest you move to Visual Studio Development Forum, the forum link is:http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio
    , may be you'll get solution on that forum.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SAP HANA Developer Edition on Amazon Web Services (AWS)

    Hi All,
    I have download SAP HANA studio, and Cleint successfully , I have also created Instance from AWS , I can see Instance is up and running brilliant  , but  to add system in HANA studio , we need to provide host name and user ID and password .
    I am giving host  as a my Instance IP address , I have tried with all possible user ID and password , I am still unable to connect my HANA Instance ( HANA server) from Studio.
    Could you help me in this issue please .
    Regards.
    Hari.

    Hi wenjun,
    I am sorry for bothering you again. really desperate to know about HANA.
    I have download the Putty.exe and Puttygen.exe in my system, pageant is already running .
    when I say Open, I am getting this error .
    after I say "YES".
    I don't know this password , I have tried with HANAabcd1234.
    but I am not lucky yet.
    Pageant is already is working .
    Please help me .
    Kind regards
    Hari

  • Developing web services for interoperability

    Hello,
    I often read that the correct way in terms of interoperability to develop web services is to start from the wsdl towards java classes, not the other way round. I find this puzzling since I was sure that jaxrp compliant toolkists were able to only generate ws-i basic profile compliant web services. So, is it really an interoperability issue or is there some other problem with the java to wsdl approach ?
    Thanks

    If you want to develope intoperable web services you should probably use JAX-WS to start with. You can read about JAX-WS at http://jax-ws.dev.java.net and you can download it with JWSDP 2.0 (http://java.sun.com/webservices/downloads/webservicespack.html).
    JAX-RPC's databinding is somewhat limited and its interop is also limited.
    During the development of JAX-WS we have been working with Microsoft to make sure that JAX-WS will interop with WCF (Indigo).

  • How can a web service  be compliant with the WTK2.1?

    I'm using WTK2.1 to develop mobile clients consuming web services.
    After published a web service by Apache Axis, I use WTK2.1's Stub Generator to
    generate the stub class.
    As required by JSR172, I use the "document/literal" encoding style.
    The web service class has only one method:
    public int newUser(String userName, String password) {
    But when I use Stub Generator to generator the stub class, I get the following messages:
    ************************ Error messages begin *****************************
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
    warning: ignoring operation "newUser": more than one part in input message
    warning: Port "User" does not contain any usable operations
    ************************ Error messages end *****************************
    And following is the wsdl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://localhost:8080/web/services/User" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/web/services/User" xmlns:intf="http://localhost:8080/web/services/User" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://ws.mauction.scucdut.edu.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types><schema targetNamespace="http://ws.mauction.scucdut.edu.cn" xmlns="http://www.w3.org/2001/XMLSchema"><element name="userName" type="xsd:string"/><element name="password" type="xsd:string"/></schema><schema targetNamespace="http://localhost:8080/web/services/User" xmlns="http://www.w3.org/2001/XMLSchema"><element name="newUserReturn" type="xsd:int"/></schema></wsdl:types>
    <wsdl:message name="newUserRequest">
    <wsdl:part element="tns1:userName" name="userName"/>
    <wsdl:part element="tns1:password" name="password"/>
    </wsdl:message>
    <wsdl:message name="newUserResponse">
    <wsdl:part element="impl:newUserReturn" name="newUserReturn"/>
    </wsdl:message>
    <wsdl:portType name="User">
    <wsdl:operation name="newUser" parameterOrder="userName password">
    <wsdl:input message="impl:newUserRequest" name="newUserRequest"/>
    <wsdl:output message="impl:newUserResponse" name="newUserResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="UserSoapBinding" type="impl:User">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="newUser">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="newUserRequest">
    <wsdlsoap:body namespace="http://ws.mauction.scucdut.edu.cn" use="literal"/>
    </wsdl:input>
    <wsdl:output name="newUserResponse">
    <wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="UserService">
    <wsdl:port binding="impl:UserSoapBinding" name="User">
    <wsdlsoap:address location="http://localhost:8080/web/services/User"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    So, can anybody tell me how to make the web service be used by the Stub Generator properly?

    Hi,
    I am new to WTK 2.1 and I am also using Axis to generate WSDL.
    one thing I figured out was to remove the namespace info behind all body tags.
    for instance in your code, replace:
    <wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
    by
    <wsdlsoap:body use="literal"/>
    and it should work. don't ask me why but it worked for me.

  • How to develop Web Services

    I have to develop an application suing Web Services.
    I'm not using ITS.
    I already read the HelpOnline and the attachemnet of note 547847 (it seems usefull only for Was 620)
    Do you know there is available some "how to do " document ?
    thanks in advance

    Hi,
    Check these excellent weblogs by Thomas:
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
    and
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Eddy

  • Developing web service.

    Hi all,
    The requirement is to developing and deploying a web service which should be application server independent. I mean to say, the service should allow us to deploy on any application server.
    Thanks and Regards,
    Ramesh Biradar

    learn about webservices.
    learn about SMS service providers.
    learn how to combine your knowledge about different subjects.

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • Application-to-application authentication using Calendar Web Services

    Calendar Web Services
    Application-to-application authentication
    (Proxy authentication)
    Abstract:
    Application-to-application authentication allows services to trust other services without having to authenticate the end-user making use of these services. The Calendar Web Services offers an application-to-application authentication mechanism called “Proxy Authentication”.
    What is Proxy Authentication?
    The Calendar Web Services Proxy Authentication is a solution that was developed by the Oracle Calendar team and is similar to what SSO would be to the web. Proxy Authentication allows any application developed using the Calendar Web Services Toolkit to establish a trusted authentication link to the Calendar Server via the Calendar Web Services.
    What do I need to get Proxy Authentication going?
    -     The Calendar Web Services Toolkit 9.0.4.2.X (Calendarlet.jar)
    -     The Calendar Web Services 9.0.4.2.X (OCAS)
    -     The Calendar Server 9.0.4.2.X (Calserv)
    -     Oracle Internet Directory 9.0.4.X (OID)
    Your collaboration suite deployment MUST be configured in a way where the Calendar Server is connected to the OID (done by default). This is fundamental given that Proxy Auth is designed to extensively use the OID security schemes.
    How to configure Proxy Authentication?
    You must have:
    1.     Access to the OID administrator account.
    2.     Access to the ldap tools ($ORACLE_HOME/ldap/bin).
    3.     Access to the Oracle Calendar Server administrator password.
    OID Configuration
    Create an entry for your application product in OID
    The following entry needs to be created:
    - cn=OracleContext
    - cn=Products
    - cn=MyApplicationProduct
    The MyApplicationProduct.ldif will look like:
    dn: cn= MyApplicationProduct, cn=Products, cn=OracleContext
    objectClass: orclContainer
    objectClass: top
    The command to add the entry is
    ./ldapadd -h HOSTNAME.COM -p OIDPORT -D "cn=orcladmin" -w PASSWROD -f ./MyApplicationProduct.ldif
    Where [HOSTNAME.COM] is the OID server hostname, [PASSWROD] is the password for the OID directory and [OIDPORT] is the OID port.
    Create an application entity for MyAppName in OID
    The following entry needs to be added to the OID:
    - cn=OracleContext
    - cn=Products
    - cn= MyApplicationProduct
    - orclApplicationCommonName=MyAppName
    The MyAppName.ldif will look like:
    dn: orclApplicationCommonName= MyAppName,
    cn= MyApplicationProduct, cn=Products,
    cn=OracleContext
    objectClass: orclApplicationEntity
    objectClass: top
    orclApplicationCommonName: MyAppName
    userpassword: test1
    The command to add the entry is
    ./ldapadd -h HOSTNAME.COM -p OIDPORT -D "cn=orcladmin" -w PASSWORD -f ./MyAppName.ldif
    Ensure the entry is properly configured
    Perform an LDAP search to locate the entry's distinguished name:
    "orclApplicationCommonName= MyAppName,
    cn= MyApplicationProduct, cn=Products,
    cn=OracleContext"
    ./ldapsearch -h HOSTNAME.COM -p OIDPORT -D "cn=orcladmin" -w PASSWROD
    -b "cn= MyApplicationProduct,cn=Products,cn=OracleContext"
    "objectclass=orclApplicationEntity" "c"
    Grant proxy privileges to the new application entity
    This creates an entry in OID:
    - dc=com
    - dc=oracle
    - dc=us
    - cn=OracleContext
    - cn=Products
    - cn=Calendar
    - cn=UserProxyPrivilege
    - uniquemember:
    orclApplicationCommonName= MyAppName,
    cn= MyApplicationProduct, cn=Products,
    cn=OracleContext
    From the $ORACLE_HOME/ocal/bin
    ./unioidconf -grantproxyprivilege \
    "orclApplicationCommonName= MyAppName,
    cn= MyApplicationProduct, cn=Products,
    cn=OracleContext"
    NOTE: you need the calendar server admin password.
    How to use Proxy Authentication?
    Once successfully done configuring your OID and Calendar Server, you must start the real work; coding. It is actually simple to implement.
    In your Java application, you will simply change the BasicAuth class with the ProxyAuth class. You then set the end-user identity, along with the proxy application name and proxy application password, you registered a moment ago.
    Ex:
    ProxyAuth auth = new ProxyAuth();
    auth.setApplicationName("orclApplicationCommonName=MyAppName, cn=MyApplicationProduct, cn=Products, cn=OracleContext");
    auth.setApplicationPassword(“test1”);
    auth.setName(myUserId);
    Your application will no longer need to pass the end-user’s password to the Calendar Web Services. From now on, it is your application’s responsibility to authenticate the end-user.
    Frederic Leblanc

    I found the solution:
    Using the CalendaringResponse.getReceiveBuffer() and getSendBuffer() methods, the soap request looks something like this:
    Sendbuffer: <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Header>
    <auth:ProxyAuth xmlns:auth="http://www.oracle.com/WebServices/Calendaring/Authentication/1.0/"><ApplicationName>orclApplicationCommonName=MyAppName,cn=MyApplicationProduct, cn=Products, cn=OracleContext</ApplicationName><ApplicationPassword>testpw1</ApplicationPassword><Name>king</Name></auth:ProxyAuth>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <cwsl:Search xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/"><CmdId>MySearchCommandID-1</CmdId><vQuery><From>VEVENT</From><Where>DTEND &gt;= '20061007T220000Z' AND DTSTART &lt;= '20061014T215900Z'</Where></vQuery></cwsl:Search>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • Web service proxy and servlet

    Hi,
    i use jdev 10.1.3.4 and i follow the tutorial "developping,depoying and managing web services using jdeveloper.
    I try to use the proxy for the web service from a servlet like in the main method of the proxy :
    HelloSoapHttpPortClient myPort = new HelloSoapHttpPortClient();
    System.out.println("calling " + myPort.getEndpoint());
    System.out.println(myPort.sayHello("didier823"));
    and i got this error :
    10/03/10 16:58:02 not an interface: services1.Hello
    How can use the proxy generated by jdev from a servlet or a jsp ?
    Thank you for your help !

    Hi,
    i find a solution i regenered a new proxy with another package and it works fine
    i can use the proxy from my servlet to call the ejb web service.
    Bye.

Maybe you are looking for

  • ANN: Video tutorial for defining a PHP local testing server on Windows

    I have created a video tutorial to show how to define a PHP local testing server on Windows. It's just under 8 and a half minutes, and can be found here: http://experts.na3.acrobat.com/phplocalsitewin/ I made it for Windows only to avoid confusing vi

  • Error while Executing DTP for 0ic_c03

    Hi Friends, While executing the 2lis_03_bx DTP for the cube 0ic_c03, i am facing this peculiar problem. Executing the DTP takes a lot of time and after some time i am getting the error "Status 'Processed with Errors' Message no. RSBK257" I have tried

  • How do I install Windows 8 Pro using Boot Camp?

    I was given Windows 8 Pro as a gift and I am curious as to how I can work around installing Windows 8 without having to purchase a System Builder.   I don't want to have both System Build and Pro :/ Thanks in advance.

  • Parsing Special Characters in XML

    Hi, I have an incoming XML snippet that has the special characters already escaped. If the Title is something like kkkkk ?& [] ]]> XML comes back escaped for & and > <title><kkkkk ? & [] ]]></title> Now I would like parse this ESCAPED Title correctly

  • The reporting point backflush is not possible for make-to-stock repetitive

    Hi All, we are using the assembly backflush in the MTS REM process. we are need to do the reporting point backflush if we tick against the RP backflush. what will be the effect in the process while confirmation. i read the sap library . it say like T