New on Fast Web Services

Hello everybody.
I am doing my master on Fast Web Services. I am a little confused however
I ve read some articles about SOAP, XML, ANS1,PRE but I still dont know how to use all these things. I mean I get what each thing does but I dont know what development tool to use and how to practice on all these things.
Can you help me somehow? Thank you :)

When I am trying to run the web service example,
I am getting following error:-
C:\beehive_projects\ws_tutorial\WEB-INF\src\build.xml:25: Cannot find ${C:\apach
e\apache-beehive-incubating-beta}/beehive-imports.xml imported from C:\beehive_p
rojects\ws_tutorial\WEB-INF\src\build.xml
please suggest some solution.
Can I make thsi war file using websphere studio developer?
Message was edited by:
naveendratiwari

Similar Messages

  • What's New in Nsite Web Service API v.4?

    Post Author: yura.tkachenko
    CA Forum: Nsite
    With Nov '07 Release you will be able to start use Nsite Web Service API v.4. This release contains
    numerous bug fixes and performance improvements. This new API is improved
    stability for different operations. Below you can find what was added in this
    release:User can turn on/off Gzip compression for Web Service API callsinsertObject call was changed and now you can do mass insert for headers and detail sections. No more neoql query as input parameter for insertObject call. Fully supporting for I18N. No limitation to insert records with fields which is starts with "_" or field's values which has quote characters or any other character.updateObject call was changed and now you can do mass update operation for headers and detail sections. No more neoql query as input parameter for updateObject call. Fully supporting for I18N. No limitation to update records with fields
    which is starts with "_" or field's values which has quote characters
    or any other character. deleteObject call was changed to support mass delete. You don't need pass any more neoql expression to delete EO record or row in detail section. Besides per one query you can delete records from different Enterprise Objects or Administrative Objects.New call - describeCurrentUser. Retrieves description of the currently logged on user.Improved performance for queryObject when you are trying to query about 2,000 records. About in two times faster start to work.Bug fixes:Improved error handlingqueryObject returns DateTime fields according to user's time zone settings. P.S.: If you are using WS API to implement importing data to Nsite please use insertObject call from v.4 instead of insertObject from WS API v.3. Because per one request you can insert hundreds of records. Approximately API v.4 can insert about 200-250 records per minute it depends on complexity of Enterprise Object.

    Post Author: yura.tkachenko
    CA Forum: Nsite
    Using GZip compression with Nsite Web Service API
       The API allows the use of compression on the request and the response, using the standards defined by the HTTP 1.1 specification. Compression is not used unless the client specifically indicates that it supports compression. For better performance, we suggest that clients accept and support compression as defined by the HTTP 1.1 specification.    To indicate that the client supports compression, you should include the HTTP header u201CAccept-Encoding: gzip, deflateu201D or a similar heading. The API compresses the response if the client properly specifies this header. The response includes the header u201CContent-Encoding: deflateu201D or u201CContent-Encoding: gzip,u201D as appropriate. You can also compress any request by including a u201CContent-Encoding: deflateu201D or u201Cgzipu201D header.   Most clients are partially constrained by their network connection, even on a corporate LAN. The API allows the use of compression to improve performance. Almost all clients can benefit from response compression, and many clients may benefit from compression of requests as well. The API supports deflate and gzip compression according the HTTP 1.1 specification.
    Example using Java Axis 1.x    /**     * To make test of gzip compression we will need to do:     * 1) Query 2000 rows from Account enterprise object     * 2) Timeout 15 sec.     */    @Test(timeout = 15000)    public void checkGZip() {        try {            com.nsite.webservices.api.v4.stubs.QueryOptions options = new com.nsite.webservices.api.v4.stubs.QueryOptions();            options.setStartRow(0);            options.setPageSize(2000);            binding.setHeader(locator.getServiceName().getNamespaceURI(), "QueryOptionsObject", options);            // we are using gzip compression on both sides: client, server            binding._setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);            binding._setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);            // make query            long time = System.currentTimeMillis();            com.nsite.webservices.api.v4.stubs.QueryResult qr =  binding.queryObject("select * from eo_" + Account_EO + ";");            System.out.println("Total tile to process: " + String.valueOf(System.currentTimeMillis() - time) + " ms.");            Assert.assertTrue("Not passed.", qr.getObjectList().length==2000);        } catch (com.nsite.webservices.api.v4.stubs.fault.ApiFault apiFault) {            Assert.fail("Not passed. " + apiFault.getExceptionMessage());        } catch (RemoteException e) {            Assert.fail("Not passed. " + e.getMessage());        }    }

  • Creating new XML Db Web Service

    Hello All,
    I have to create a new XML DB webservice. I did follow the below oracle documentation and could create the service. But when I tired to run the XQUERY, to get the information about the service I just added,
    1) I could see only part of the output.
    2) I need to add this output to "xdbconfig.xml". But I dont see this file on my database server.
    I am sure that the XDB is configured on this database. I do see following lines in alertlog, when we bounced the database recently, which confirms the XDB is configured.
    Tue Nov 29 17:53:17 2011
    XDB installed.
    XDB initialized.
    Tue Nov 29 17:53:43 2011
    Not sure what happened to the xdbconfig.xml. Please see below command I used to create Web Service and XQUERY.
    DECLARE
    SERVLET_NAME VARCHAR2(32) := 'WDD_XML';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/WDD_XML/*',
    NAME => SERVLET_NAME);
    END;
    XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/
    webappconfig/servletconfig/servlet-list/servlet[servlet-name='WDD_XML']
    return $doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm
    Thanks,
    KRMR.

    Hi,
    2) I need to add this output to "xdbconfig.xml". But I dont see this file on my database server.It's located at the root of the XML DB repository, in the database.
    You don't edit it directly.
    The truncated output is an SQL*Plus issue, most likely.
    I guess you have something like this :
    SQL> XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd"; (: :)
      2         for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/
      3          webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
      4         return $doc
      5  /
    Result Sequence
    <servlet xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
      <servlet-name>orawYou need to set the LONG parameter to a sufficient amount first :
    SQL> set long 500
    SQL> set pagesize 100
    SQL> XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd"; (: :)
      2         for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/
      3          webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
      4         return $doc
      5  /
    Result Sequence
    <servlet xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
      <servlet-name>orawsv</servlet-name>
      <servlet-language>C</servlet-language>
      <display-name>Oracle Query Web Service</display-name>
      <description>Servlet for issuing queries as a Web Service</description>
      <servlet-schema>XDB</servlet-schema>
      <security-role-ref>
        <description/>
        <role-name>XDB_WEBSERVICES</role-name>
        <role-link>XDB_WEBSERVICES</role-link>
      </security-role-ref>
    </servlet>

  • Creating a new project with custom fields using web services

    I've been trying unsuccessfully for the last week or so to successfully create a new project from web services and I believe the main problem that I've been running into is that one of the required fields is a custom field. I've tried creating the Project
    in a couple of different ways and haven't had any success up to this point, so any help would be appreciated. I've tried creating it with both a REST call to /_api/ProjectServer/Projects and a SOAP call to /_vti_bin/PSI/Project.asmx. Below are the best shots
    I've made at the two different calls with the errors I received. If anyone has any leads on the best way to do this the help would be appreciated!
    REST POST /_api/ProjectServer/Projects
    'odata.type' : 'PS.PublishedProject',
    'Name' : 'OData Name',
    'Custom_9d77d62aa92e4d40adc8446c90eb7456' : "O&M"
    Response
    error: {
    code: "11713, Microsoft.ProjectServer.PJClientCallableException"
    message: {
    lang: "en-US"
    value: "PJClientCallableException: CustomFieldRequiredValueNotProvided CustomFieldRequiredValueNotProvided mdpropuid = 9d77d62a-a92e-4d40-adc8-446c90eb7456"
    SOAP POST /_vti_bin/PSI/Project.asmx
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proj="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:projds="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
    <soapenv:Header />
    <soapenv:Body>
    <proj:QueueCreateProject>
    <proj:dataset>
    <ProjectDataSet xmlns="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
    <Project>
    <PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
    <PROJ_NAME>Proj Dept Test 2</PROJ_NAME>
    <PROJ_TYPE>0</PROJ_TYPE>
    </Project>
    <ProjectCustomFields>
    <CUSTOM_FIELD_UID>4802a711-62a0-4f84-8e08-c7d22daadb5b</CUSTOM_FIELD_UID>
    <PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
    <MD_PROP_UID>9d77d62a-a92e-4d40-adc8-446c90eb7456</MD_PROP_UID>
    <FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>
    <CODE_VALUE>a47930d6-b89d-4f3a-b4e3-522015fe82a1</CODE_VALUE>
    </ProjectCustomFields>
    </ProjectDataSet>
    </proj:dataset>
    <proj:validateOnly>true</proj:validateOnly>
    </proj:QueueCreateProject>
    </soapenv:Body>
    </soapenv:Envelope>
    Response
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
    <s:Fault>
    <faultcode>s:Server</faultcode>
    <faultstring xml:lang="en-US">ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information</faultstring>
    <detail>
    <errinfo>
    <general>
    <class name="General Unhandled Exception in _Project.QueueCreateProject_">
    <error id="42" name="GeneralUnhandledException" uid="184feeaf-906a-e411-9b2a-00155d388b02" Exception="System.Data.StrongTypingException: The value for column 'PROJ_TYPE' in table 'Project' is DBNull. ---> System.InvalidCastException: Specified cast is not valid.
    at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
    --- End of inner exception stack trace ---
    at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
    at Microsoft.Office.Project.Server.BusinessLayer.Project.FixupProjectType(ProjectDataSet projDS)
    at Microsoft.Office.Project.Server.BusinessLayer.Project.QueueCreateProject(Guid jobUid, ProjectDataSet dataset, Boolean validateOnly)
    at Microsoft.Office.Project.Server.Wcf.Implementation.ProjectImpl.&lt;>c__DisplayClasse.&lt;QueueCreateProject>b__d()
    at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)"/>
    </class>
    </general>
    </errinfo>
    </detail>
    </s:Fault>
    </s:Body>
    </s:Envelope>

    Julie,
    You can create the fields that are project specifc & you can create fields that apply to all projects but have specific options for projects. Your goal is to create fields that are specific to each project, but right now you get all fields from you old project - is this correct?
    From your description below it appears that the fields in your original project are marked as applied to all projects & hence when you create a new project they are inherited. If you mark those fields as applied to certain project & then create a new project those fields will not be inherited.
    But you are right in the sense that it is limiting that there is no multi-select for "applies to" field.

  • How to create a new web service project of Weblogic 9.2 on Eclise ?

    Dear experts,
    I have to use weblogic server 9.2.2 and eclipse as my developing environment.
    But when I execute eclipse->File->New->Project->WebLogic Web Services->Web Service Project.
    I can't see the choice for weblogic server 9.x in the Target runtime field.
    Even I download the additional server adapters, the oldest version is Oracle WebLogic Server 10gR3 (newer than 9.x).
    So, how can I create a weblogic server9.x web server project on eclipse ?
    Thanks,
    James Tung

    James,
    Which version of Eclipse are you using? Do you have Oracle Enterprise Pack for Eclipse installed? Which version?
    According to the docs, OEPE 11.1.1.6 (the latest of this post) supports WLS back to version 9.2.
    http://download.oracle.com/docs/cd/E15315_05/help/oracle.eclipse.tools.common.doc/html/index.html
    Make sure that you have a WLS 9.2 Server Runtime defined.
    Window->Prefereces->Server->Runtime Environments
    Add a BEA System, Inc WLS 9.2 server runtime and make sure it is pointing to the right place on your file system and try creating your Web Service project again.
    If you still have issues, try the OEPE forum.
    Enterprise Pack for Eclipse

  • New to Web Services and BPEL - new hands-on introduction available

    If you are new to publishing business logic as a web services, or new to orchestrating web services as BPEL services, then this hands-on will give you a great introduction in taking your fist steps in the SOA world.
    The hands-on script is available here:
    http://otn.oracle.com/formsdesignerj2ee
    It is based on JDeveloper 10.1.3 Preview and the 10.1.3 Preview SOA suite which are both downloadable from OTN.
    It takes about 60 minutes to go through the steps, a little longer if you need to install the software, but even the installation is easy.
    Enjoy your first steps in the SOA world!
    Regards
    Grant Ronald

    bump

  • Is there a new version of the book "Beginning Java Web Services"?

    I am new to programming web services with Java. Is Beginning Java Web Services a recommended book for a beginner? Does it have a newer version as the one available was written in 2002. Can anyone suggest a latest beginners guide book?

    The MD387LL/A, MD388LL/A, and MD389LL/A are the latest models in the USA and Canada. It's the same in other countries, except for the LL.
    (102906)

  • Future direction of BEA Web Services? - binary / attachments

    Hello,
    I'm looking at needing to transfer binary data through a web service,
    but can't handle the 4/3+ size increase that occurs when embedding the
    data with base64 encoding.
    I know that WL 8.1sp3 support SwA, but that standard is being deprecated
    in favor of newer technologies like Fast Web Services (based on ASN.1
    encoding rules), MTOM/XOP, Basic Attachments Profile.
    We'd prefer to be able to rely on the support of the application server.
    What is BEA's future direction in terms of this technology? Will they be
    supporting one or all of these binary standards? When is the estimated
    date for this technology to be implemented?
    If these technologies won't be implemented for a while, is it possible
    to plug in 3rd party web services solutions into BEA WL8.1 (e.g. Sun's
    JWSDP, Axis, etc)? I believe it is, but am just asking for the sake of a
    full answer.
    Thanks

    Steve,
    Due to BEA's award winning support they offer, I had to figure this out on my own. After weeks of dealing with a support case they provided me with absolutely nothing. Just as they have done in this thread. I will share what I have done for the mean time to get around their limitations using attachments.
    I used the Axis libraries to create a DIME attachment and call a BEA web service. Since BEA doesn't support Dime, a servlet filter had to be implemented and parse the DIME message prior to the web service received it. I'm sending 2GB files with transfer rates of 6MB/S.
    This is a response from BEA's award winning support:
    "We do not have good specification standard as yet as to how to best solve the issue. It appears like a pretty larger issue to solve because of the lack os standards and specification. Engineering is still researching on the issue and we don't know which version will have the fix."

  • Questions on web services in the CRM system from abap

    Hi, we are new to consuming web services within the abap engine and have a couple of questions
    When we consume the webservice do we have access to the web.xml and ejb-jar.xml deployment descriptors is there a standard servicref element
    Are these descriptors editable so we can add JAX/RPC client side messages to the service ref element
    What are all the versions also as I can't seem to find any info also any documentation on the above if it exists would be greatly appreciated
    Cheers,
    Devlin

    Hi Devlin,
    When you can consume the services with CAF core or deployable proxies within Netweaver04s, you are able to see the web.xml and the ejb-jar.xml deployment descriptors.
    For Comsuming services within ABAP,this doc shoukd serve the purpose,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    This doc shows how to provide and conmsume services in ABAP,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    Also I found an old doc which talks about consuming in Netwaever,probably throws somelight on deployable proxies.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c4e8960-0501-0010-fc82-bb83af9155bf
    Message was edited by:
            Karthik S J

  • How can I return multiple values with PL/SQL Web Services

    Hi,
    I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
    I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
    Reginald
    ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? Thanks

    Alright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
    It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
    {color:#ff0000}
    create or replace TYPE person AS OBJECT
    ( id_interv number,
    first_name VARCHAR2(50),
    last_name VARCHAR2(50),
    date_birth date
    );{color}
    Then your function used in your Web Service should look something like this :
    {color:#ff0000}
    function info_emp (p_empno IN VARCHAR2) RETURN person AS
    l_emp person := person(-1,'','','');
    BEGIN
    SELECT first_name
    ,last_name
    ,emp_no
    INTO l_emp.first_name
    ,l_emp.last_name
    ,l_emp.emp_no
    FROM emp
    WHERE upper(emp_no) = upper (emp_no);
    {color}
    {color:#ff0000}
    RETURN l_emp;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_emp := person (-1,'n/a','n/a','n/a');
    RETURN l_emp ;
    END info_emp;{color}
    {color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
    &lt;first_name xsi:type="xsd:string"&gt;John&lt;/first_name&gt;
    &lt;last_name xsi:type="xsd:string"&gt;Doe&lt;/last_name&gt;
    &lt;emp_no xsi:type="xsd:string"&gt;0250193&lt;/emp_no&gt;

  • Calling secured Web Service

    Hi,
    I am new in calling web service from PL/SQL block.
    From the code I'm successfully able to call non-secured webservice like this "http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefunctions.asmx?wsdl"
    And also by setting the wallet I'm also able to call secured web service like this "https://www.docusign.net/api/3.0/Credential.asmx?WSDL" (ping method).
    For calling this secured service I stored certs with chain into the wallet and that works.
    But my problem is a different web service where that web service is authenticating me with my certificate. I have VeriSign certificate with private key and that web service has my public key. Whenever I will send SOAP request I need to send my certificate with the request. And communication will be over SSL.
    I have created a wallet with complete chain from the PFX file I received from VeriSign and Wallet is in Ready state, also I have included web service's certificate also.
    Whenever I am trying to make SOAP call I'm getting
    ORA-00600: internal error code, arguments: [kgazmo_1], [], [], [], [], [], [], []
    Please let me know where is the problem. May be I'm not able to send my certificate for authentication or may be I'm not able to establish SSL for communication from PL/SQL.
    I'm using 10.1.2 as database. I also have 10g AS installed, if that can help in achieving this.
    Code is as follows:
    FUNCTION CallWS
    RETURN xmltype
    AS
    l_request soap_api.t_request;
    l_response soap_api.t_response;
    l_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_method VARCHAR2(32767);
    l_soap_action VARCHAR2(32767);
    l_doc xmltype;
    BEGIN
    l_url := 'https://secured.webservice.com/WS/WebService.asmx';
    l_namespace := 'xmlns="https://secured.webservice.com/WS"';
    l_method := 'GetMe';
    l_soap_action := 'https://secured.webservice.com/WS/GetMe';
    utl_http.set_wallet('file:c:/wallets','pass123');
    l_request := soap_api.new_request(p_method => l_method,
    p_namespace => l_namespace);
    soap_api.add_parameter(p_request => l_request,
    p_name => 'param1',
    p_type => 'xsd:string',
    p_value => 'val1');
    soap_api.add_parameter(p_request => l_request,
    p_name => 'param2',
    p_type => 'xsd:string',
    p_value => 'val2');
    l_response := soap_api.invoke(p_request => l_request,
    p_url => l_url,
    p_action => l_soap_action );
    l_doc := l_response.doc;
    RETURN l_doc;
    END CallWS;
    You can find SOAP_API package here [SOAP_API|http://www.oracle-base.com/dba/miscellaneous/soap_api.sql] .
    Thanks in advance.
    -Smith

    Thanks again Billy,
    I have configured a wallet with all the necessary certificates. Actually I have purchased a VeriSign trusted certificate and convert that into Oracle Wallet (p12) using openssl with appropriate password. And I'm calling UTL_HTTP.set_wallet('<path_to_wallet>','<pass_to_open_it>');
    I have send my public key to them (web service company) and they need me to send my certificate with every request so that they can authenticate.
    You are saying we don't have to write any code for TLS/SSL UTL_HTTP will take care of that, thats really good.
    One more thing I want to mention here...
    In Internet Explorer - When I am importing my certificate without my private key and trying to access web service I'm getting 404 page not found error.
    But when I'm importing my certificate with the private key, I can see WSDL and all other methods offered by that web service.
    I'm guessing Oracle Wallet that I'm creating with my certificate will store private key also. B'coz it is showing me User Certificate in Ready state.
    ORA-00600 is not giving me proper location where I can find any error in my code.
    Thanks
    -Smith

  • Web service from ejb

    Hi All,
    I am new to java web services.
    I made web services from ejb with netbeans.
    I like only some people to have access to this services with user and pass stored in database.
    In other words I need authentication and authorization.
    How can I do this?
    Regards

    Well it depends also on application server you are using.
    It depends also on web service stack you are using.
    For example here is the hint for glassfish (Metro):
    http://java.sun.com/javaee/5/docs/tutorial/doc/bncbe.html#bncbn
    Miro.

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Testing a Web Service

    Hi Experts,
    I'm new to publishing Web Services. To create my first WS, I followed help step by step from http://help.sap.com/saphelp_nw2004s/helpdata/en/68/0464407b9b990ae10000000a155106/frameset.htm.
    After I created a service definition, when I tried to test the service through SOA MANAGER, I received the following error.
    Cannot download WSDL from http://****/sap/bc/srt/wsdl/sdef_Z_WS_TEST_3/wsdl11/ws_policy/document?sap-client=200: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !
    It seems that the namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' defined in WSDL is not proper.  However, I just don't understand how the WSDL generated by Service Wizard could be wrong.
    Any idea where the namespace comes form? Any way to modify the namespace?
    The following is the beginning part of my WSDL:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions">
    <wsdl:documentation>
    <sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl"/></wsdl:documentation>
    <wsp:UsingPolicy wsdl:required="true"/>
    <wsp:Policy wsu:Id="IF_Z_WS_TEST_3">
    <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
    <sapsession:enableSession>false</sapsession:enableSession></sapsession:Session>
    <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"/>
    </wsp:Policy>
    Thanks for your help in advace,
    Kay

    Hello All,
    we have the same problem and it still exist.
    When using the wsnavigator (called via soamanager)  to check the web service we recieve the following error message:
    Cannot download WSDL from http://<server>:8000/sap/bc/srt/wsdl/bndg_47F2E4CDC8E62B2CE1000000C0A8C9A2/wsdl11/allinone/ws_policy/document?sap-client=000: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !
    If i open the link directly in the browser i get the wsdl.
    The test of the SICF Service seems to be ok: (only the information about the empty http-body)
    http://<server>:8000/sap/bc/srt/rfc/sap/ytest5/000/ytest5/ytest5?sap-client=000
    soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header />
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Server</faultcode>
      <faultstring xml:lang="en">SRT: Wrong Content-Type and empty HTTP-Body received</faultstring>
    - <detail>
    - <ns:SystemFault xmlns:ns="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/">
      <Host>undefined</Host>
      <Component>COREMSG</Component>
    - <ChainedException>
      <Exception_Name>CX_SOAP_CORE</Exception_Name>
      <Exception_Text>SRT: Wrong Content-Type and empty HTTP-Body received</Exception_Text>
      </ChainedException>
      </ns:SystemFault>
      </detail>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    How can we check the service? What is wrong?
    The linked BLOG does`nt give a solution.
    Thanks a lot.
    Steffen

  • Is possible to compare a web service like a function module ?

    Hello all,
    I'm new in ABAP web service ( not java, not PI ). I have to create a web service to send some file
    from sap system towards external system and I'm learing some documentation.
    To send a file with web service I need to create an interface with Internet Comunication Manager and
    when this interface is created,
    how can I send my file with web service ? I need to create a FM or other object ?
    tks a lot,
    bye.

    a fm is accessible via ws

Maybe you are looking for