New Web Services and UDDI  Sample

New Web Services and UDDI sample has been hosted on OTN site.
In this sample learn how to invoke web services dynamically. You will also learn how to publish and look up Web Services registered in Oracle UDDI registry. This sample application implements an insurance portal where the user can look out for the best insurance deals.
http://otn.oracle.com/sample_code/tech/java/web_services/content.html
Regards
-- Abhijeet

bump

Similar Messages

  • ANN: Contest open, new tutorial and new Web services software

    The OTN Web Services Challenge is now open and accepting entries. Read the details, rules and requirements at:
    http://otn.oracle.com/tech/webservices/htdocs/challenge/content.html
    You could win a Dell Notebook worth USD$5,000 :-) First 500 real entries (that is one with source code and works) will get an Oracle Press book (my understanding is that it is one on Oracle9iAS).
    There are also a number of new things also available on the OTN Web Services Center:
    - A new Oracle9i Reports tutorial at:
    http://otn.oracle.com/tech/webservices/htdocs/series/reports/content.html
    - The Oracle9iAS Containers for J2EE Developer Preview (9.0.3) now supports document style Web Services and asynchronous Web services. Read all the content off the main page in the center:
    http://otn.oracle.com/tech/webservices/
    - A new paper talking about the Java XML Pack from Sun which Oracle is iterating its Oracle9iAS implementation towards:
    http://otn.oracle.com/tech/webservices/htdocs/standards/jax.html
    Mike.

    Currently the patch is only available on MetaLink (metalink.oracle.com) which requires a support account with Oracle. The patch number is 2367149 - see this post for instructions of how to get it from MetaLink:
    Re: Database or Client Level?
    Mike.

  • Web Services and BEA

    Web Services has all the makings of a home run. As a powerful integration
    platfor, it moves the procedural-heavy complexities of builiding distributed
    app into the realm of simple declarative transactions, while supporting
    location transparency. It is a powerful technology that removes the barrier
    erected by the discontinuity of geographic distance and cross-platform
    technical mismatches that have until now constrained the plumbing between
    heterogeneous networked applications.
    Developers who feel lost in the labyrinth of hype can turn to a new site
    site., Web Services FAQ http://www.webservicesfaq.com devoted to UDDI,
    WSDL, SOAP, ebXML, Best Practices, Intergration issues and so on...
    Here they'll learn how, while Web Services complements J2EE and compliant
    servers superbly, it is also an excellent integration platform for BEA
    technologies, and in fact for the transparent interoperability between the
    two, and between any other architectures that support the new Web Services
    standards.
    Best Regards
    Ramene Anthony

    You should be able to get the username from the context?
    private SessionContext sessionCtx = null;
    public void setSessionContext(SessionContext sctx) {
    this.sessionCtx = sctx;
    public void someMethod() {
    String username = sessionCtx.getCallerPrincipal().getName();
    -Jesus

  • Web Services and the Developer Mindset

    "Web Services has all the makings of a home run. As a powerful integration platform, it moves the procedural-heavy complexities of building distributed apps into the realm of simple declarative transactions, while supporting location transparency. It is a powerful that removes the barriers erected by the discontinuity of geographic distance and cross-platform technical mismatches that have until now constrained the plumbing between heterogeneous networked applications.
    Developers who feel lost in the labyrinth of hype they can turn to a new site http://www.webservicesfaq.com devoted to UDDI, WSDL,SOAP, ebXML, and so on.
    Here they'll learn how, while Web Services complements J2EE superbly, it is also an excellent integration platform for .NET technologies, and in fact for the transparent interoperability between the two, and between any other architectures that support the new Web Services standards.

    What is your question?

  • Pl/Sql web service and collections not working

    Hello
    I'm trying to create a web service from a function in a package which returns a collection. The creation of the web service and its deployment seem to work correctly. I do get the following warning :
    WARNING: OWS-00077 The Value Type class: pxWsLang.PamLanguagerecordBase does not have a valid JAVA Bean pattern
    but I don't think this is the source of the problem.
    When I try to test the web service using the endpoint in the wsdl I get the following answer in the browser:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>Error creating target: pxWsLang.WsLangUser</faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
    In the DOS window for the OC4J I get the following error :
    2006-11-15 09:21:25.852 ERROR OWS-04005 An error occurred for port: {http://pxWs
    Lang/WsLang.wsdl}wsLangSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creati
    ng target: pxWsLang.WsLangUser.
    The PL/SQL code is as follows :
    Object:
    CREATE OR REPLACE TYPE PAM_LanguageRecord as OBJECT
    NR NUMBER(3),
    SYMBOL VARCHAR2(2)
    Collection:
    CREATE OR REPLACE Type PAM_LanguageTable as Table of PAM_LanguageRecord;
    Package body :
    create or replace package body PAM_TEST is
    function CursorTest return Pam_LanguageTable is
    Res_LangTable PAM_LanguageTable;
    cursor cur is select * from stc_languages;
    begin
    Res_LangTable := new PAM_LanguageTable();
    for Rec in cur loop
    Res_LangTable.Extend(1);
    Res_LangTable(cur%ROWCOUNT) := new PAM_LanguageRecord
    (Rec.NR,
    Rec.SYMBOL
    end loop;
    Return Res_LangTable;
    end;
    end;
    I'm using JDeveloper version 10.1.3.1.0.3984
    How can I get this to work ? (without using Apache Axis or other tools :-)
    Is it supposed to work ?
    Many Thanks
    Paul

    Hi,
    for the "error creating target" problem I found the solution here:
    [WS from a PL/SQL package]: Error creating target
    Hope this helps.
    Regards,
    Patrik

  • ASMX web service and The remote server returned an error: (500) Internal Server Error issue

    i have developed a very small web service and which is hosted along with our web site. our webservice url is
    http://www.bba-reman.com/Search/SearchDataIndex.asmx
    web service code
    namespace WebSearchIndex
    #region SearchDataIndex
    /// <summary>
    /// SearchDataIndex is web service which will call function exist in another library for part data indexing
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class SearchDataIndex : System.Web.Services.WebService
    //public AuthHeader ServiceAuth=null;
    public class AuthHeader : SoapHeader
    public string Username;
    public string Password;
    #region StartIndex
    /// <summary>
    /// this function will invoke CreateIndex function of SiteSearch module to reindex the data
    /// </summary>
    [WebMethod]
    public string StartIndex(AuthHeader auth)
    string strRetVal = "";
    if (auth.Username == "Admin" && auth.Password == "Admin")
    strRetVal = SiteSearch.CreateIndex(false);
    else
    SoapException se = new SoapException("Failed : Invalid credentials",
    SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
    throw se;
    return strRetVal;
    #endregion
    #endregion
    when i was calling that web service from my win apps using
    HttpWebRequest
    class then getting error The remote server returned an error: (500) Internal Server Error
    here is code of my win apps from where i am calling web service
    string strXml = "";
    strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
    string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    req.Method = "POST";
    req.ContentType = "text/xml";
    req.KeepAlive = false;
    req.ContentLength = strXml.Length;
    StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
    streamOut.Write(strXml);
    streamOut.Close();
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    string strResponse = streamIn.ReadToEnd();
    streamIn.Close();
    i am just not being able to understand when this line execute
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    then getting the error The remote server returned an error: (500) Internal Server Error
    not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
    help me to fix this issue. thanks

    Hi Mou,
    I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
    The error message I quoted from Fiddler:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---&gt; System.Exception: Invalid credentials
    --- End of inner exception stack trace ---
    at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
    I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
    1.right click the Reference and select Add Service Reference
    2.input your service link and click "Go"
    And you can use this service as the following:
    private async void callService()
    ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
    var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
    Please try it.
    Regards,
    Will
    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.

  • Objects, web services and netbeans

    I am trying to make a web service that returns an array of objects (where each object is a small number of strings). I shall list what I have done, if you just want to read the problem skip to <PROBLEM>.
    1) Wrote .wsdl file [1]
    In netbeans:
    2) Generated web service from WSDL:
    A) New web application, using the sun application server
    B) New Web Service From WSDL (this gives an error, Illegal character in path at index 18: file:/<path of wsdl file>)
    C) Right click on web service, Refreash service. No error
    D) Run project, test web service, seems to work, returns null.
    3) Consumed service:
    A) New general application,
    B) In main method, right click / Web Service Client Resources / Call Web Service Operation
    C) Select method (getparams(String))
    D) Add import org.impress.PortType; as prompted
    E) Run project, Result = null
    Now I want to add some data to what I am passing. First I return a new namespace.webservice._new.Paramarrayel (what netbeans decided the method should return). The client now shows that something is returned (org.impress.Paramarrayel@1bb5c09).
    <PROBLEM>
    Now this is where I get stuck. I want to add the data, the client knows there should be a .getGetparamreturns() function in the returned org.impress.Paramarrayel object but I cannot figure out how to add it in the server. I have tryed extending the namespace.webservice._new.Paramarrayel and namespace.webservice._new.Paramreturns, and adding a Paramreturns as a member variable of Paramarrayel but .getGetparamreturns() returns null in the client.
    Anyone able to help?
    [1]
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSpy v2007 rel. 3 sp1 (http://www.altova.com) by andrew (Medical Research Council) -->
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://new.webservice.namespace" targetNamespace="http://new.webservice.namespace">
         <wsdl:types>
              <xs:schema targetNamespace="http://new.webservice.namespace" elementFormDefault="qualified" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
                   <xs:element name="paramimpressidstring" type="xs:string"/>
                   <xs:complexType name="paramreturns">
                        <xs:sequence>
                             <xs:element name="name" nillable="true" type="xs:string"/>
                             <xs:element name="value" nillable="true" type="xs:string"/>
                        </xs:sequence>
                   </xs:complexType>
                   <xs:element name="paramarrayel">
                        <xs:complexType>
                             <xs:sequence>
                                  <xs:element name="getparamreturns" nillable="true" type="tns:paramreturns"/>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:schema>
         </wsdl:types>
         <wsdl:message name="getparamsRequest">
              <wsdl:part name="impressid" element="tns:paramimpressidstring"/>
         </wsdl:message>
         <wsdl:message name="getparamsResponse">
              <wsdl:part name="paramsarray" element="tns:paramarrayel"/>
         </wsdl:message>
         <wsdl:portType name="portType">
              <wsdl:operation name="getparams">
                   <wsdl:input message="tns:getparamsRequest"/>
                   <wsdl:output message="tns:getparamsResponse"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="impressBinding" type="tns:portType">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="getparams">
                   <soap:operation soapAction="urn:#getparams"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="impress">
              <wsdl:port name="impressport" binding="tns:impressBinding">
                   <soap:address location="http://impress.publicdevelopment.har.mrc.ac.uk/server.php"/>
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>

    Yes it's true but Netbeans uses one of the existing SOAP implementations to do it. I'm almost sure that it uses one of the most popular implementations JAX-WS RI or Axis by default.
    Regards,
    S&#322;awomir Wojtasiak

  • Need advice about web services and Java beans

    Hi
    I am very new to web services and to Java beans as well.
    I am trying to understand if and how a web service can use functionality I have in a Java bean. I couldn't find any documentation I can use.
    For example:
    InitialContext ic = new InitialContext();
    Adder adder = (Adder) ic.lookup("ejb/AdderJNDI");In a EJB client project (I'm working with Eclipse) if I add the EJB project to the build path, the Adder interface is recognized.
    Theoritacally I thought I can do the same in a web service server project, but the Adder interface is not recognized.
    Is there something I can read to understand how I need to use the EJB or implement the web service?
    Many thanks
    Sigal

    Okay....I think I made some errors with the original scenario:
    It basically comes down to this....I think. OCS Calendar has a set of Java classes and methods that provide an abstraction for their web services interface. I know how to create something to use these classes using an IDE like JDeveloper, but I'm not sure how that would work with HTML DB.
    I've noticed that the SQL Workshop has a place for Java sources and classes, and I've heard mentions of PL/SQL wrapping. Is there a way to import classes into an HTML DB workspace, wrap 'em up, and access them via PL/SQL?
    Thanks again,
    Jonathan

  • Load balancing SMA web service and SMA end point URL

    Hi,
    We have set up the recommended 3 servers with Azure Pack, SMA Web Service and Runbook Worker.  We are now wanting to configure the Azure pack portal to setup the SMA endpoint url for the web service.  Before we do that, we are assuming we should
    load balance the web services to answer on 1 url (ie, smaws.domainname.com).
    1. Is there any guidance or things to consider when load balancing the 3 web services to answer to 1 url.  We will probably use f5 since that is what we use.
    2. The end point url that we configure for Azure Pack automation should be this load balanced URL correct?
    3. Should we have the Azure pack installed on just one of the servers or all 3.  We did all 3 but it seems like server2 and 3 just redirect to 1 anyway so I am assuming the URL for Azure pack is stored in a db somewhere.
    4. Are there any other components of SMA/Azure Pack that should also be load balanced?
    Thanks
    Thanks Lance

    So in this case you need to register the SMA Runbook Workers (do this on machine 1):
    $webService
    = "https://localhost"
    $workers
    = (Get-SmaRunbookWorkerDeployment
    -WebServiceEndpoint
    $webService).ComputerName
    if($workers
    -isnot [system.array]) {$workers
    = @($workers)}
    $workers
    += "MachineName2"
    $workers += "MachineName3"
    New-SmaRunbookWorkerDeployment
    -WebServiceEndpoint
    $webService -ComputerName
    $workers

  • [jaxrpc] defining web services and WSDL spec

    Greetings,
    I'm starting in JAXRPC web service's concepts and its WSDL specification. After I tested some samples from the jaxrpc tutorial, I tried to make my custom web service, but, I have problems when I deploy the web service and I tried to see in my browser the endpoint url - I got a internal server exception! I pick up the hello sample, I added to it my custom core sample web service functionality - using the same operations, the same signatures methods - and it worked fine!!
    So, what' is wrong? The main difference between them is that I have differents configuration files for xrpcc that will give a wsdl files for each one. Whats changes? The service name? The interface/package name? Is there some kind of limitation in the package name convention with the service names beyound the basic ones in the xrpcc (jaxrpc) specification?
    thanks,
    Pedro Salazar.

    I upgraded webservices developer pack to 1.0 version (final) and I solved my problems!
    Pedro Salazar

  • Web services and e print not working on 7520e

    After the update it instructed me to turn off my printer so the update could take effect which I did but my printer would not turn back on. leaving it overnight it was the same the next day so I had to unplug it from the wall outlet. I lost my internet connection and no matter what I did I could not get it to connect.I called cloud services who put in a network address of 192.168.223.1 and hung up leaving me with no printer and sending me an email to get my ISP server to fix.
    I called HP support and they got it connected just fine but when I try to log into my printers web page it still has my
    hp email address but when I try to get to the web page it leads me to Launch HP network check.
     on the front of my printer it says unable to connect to the internet, enter a proxy address, my server does not use one.
    I tried to disable web services and then enabled them again hoping to get a new code but no luck. In my own network it has the last digit different to the one being used and set as a static IP address . I was not able to scroll any Apps before any of this happened, is the server down or has anyone any ideas how to fix this. has anyone else got the same problem. The schedulled Apps printed off just fine before this.

    Hello dylon,
    Thank you for being an active member of the HP support community.  I understand that your Photosmart 7520 printer is indicating that it is not connected since doing a firmware update  last week.
    Please start by setting a manual IP address and manual DNS servers.  Please use this post with the steps and screen shots on how to do this.  The screen shots are for the Photosmart 7510 but the steps are the same.
    If you find that you are still unable to connect to web services please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Old client - new web service

    Hi,
    i try to migrate our old web services from axis 1.2 to a jboss web service under jbossws - native with jaxws.
    the client send a string to the web service and the return value is also a string.
    the old web service is rpc/encoded and the client was generated bei the axis tools.
    with a few changes i can use my old client to the new web service.
    but i didnt understand why i can use a rpc/encoded client to a jaxws web service using doc/lit.
    so my questions are :
    a) why is a jaxws web service able to read an soap-request with rpc/encoded? i thougth it is forbidden by the ws-i
    b) i also hear there could be interoperability problems with rpc/encoded. why it don´t affect my web service?
    we have a lot of serviceuser so it would be good if they can use their old clients.
    best regards
    Chris

    Their old web service exposed the WSDL through a .asmx file.  The new web service exposes the WSDL though a .svc file.
    That would mean that the older service was written using ASP.net web services and the newer one was written using WCF.
    That's ok to me, I wanted to move up to the .NET SOAP engine anyway.
    That's still likely to be a problem.  That's because the .Net SOAP engine that Classic uses is base on ASP.Net.  WCF implements a lot of web services standards that ASP.Net doesn't know how to handle.  Your best bet for consuming a WCF web service would be the WCF client in PB.Net.
    Problem #2: The .NET SOAP engine seems to have a problem passing some array data.
    You might try upgrading to 12.5.2  There have been continuous improvements to the .Net SOAP engine since it was first introduced.

  • Web Services and the Portal

    Are there any versions of the portal that have native support for communications to Web Services? Is it going to be eventually possible to dynamically discover channels via a discovery method like UDDI?

    Currently no, in the next release we have preliminary support for web services and there might be web services provider but eventually no time frame yet we do plan to support UDDI ..

  • B1 Web Services and license?

    hi all,
    Does anyone know about B1 Web Services and license?
    How does the license calculated?
    Meaning that each time user login to B1 Web Services need license same as SAP B1 2007?
    Or any user can login as free?
    Thank you.
    Best Regards,
    danny

    Hi Danny,
    here is the license request link and the link provides info about your question:
    1. https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000548322&_SCENARIO=01100035870000000183
    2.
    https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000705857&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&_OBJECT=011000358700000406422008E
    3.FAQ
    https://websmp202.sap-ag.de/~sapidb/011000358700001571522005E
    you could also read the license guide that can also be downloaded from the link.
    Another info from 1st link is ;
       * Effective: May 1st 2008
    New limited user licenses
    Entry-level user remains
    Add-On Access User is being replaced by the new Indirect Access User
    No changes to the professional user
    No changes to 'named user' concept
    No changes to the existing CRM Web User, E-Commerce server and existing development tools
    New discount model aligned with drive to SAP Business One sweet spot
    Existing Professional user price remain
    Rgds,

  • Web Services and Portal v1

    Can 9iAS Portal v1 support Webservices just like Portal v2 can?

    Yes ... I doubt the PDK samples built in V1 are backwards compatible because V1 used Apache JServ and V2 uses OC4J. I did build a demo for Oracle OpenWorld 2001 that showed this by building a stub in JDeveloper consuming the Web service and then building a portlet using the JPDK that used that Java stub to call a Web service. I did it on 9iAS Portal 1.0.2.2 and it worked fine. Not sure if that's all you're looking for ... I could send you the basic stuff offline but it is a little old and folks familiar with it are probably not so many now. So bear that in mind - [email protected]
    Mike.

Maybe you are looking for