Web service datatypes

hi
I have some problems while creating webservice .
I am using weblogic 9.0.
i was trying to use return type as Object and Vector. Both is not working for me.
i am giving the error messages i got.
java.lang.IllegalArgumentException: invalid element java type: 'java.lang.Object'
[jwsc] [SEVERE] Could not locate schema type bound to wrapped element type:
java.util.Vector
Plz help
Thanx in advance

hi
I have some problems while creating webservice .
I am using weblogic 9.0.
i was trying to use return type as Object and Vector. Both is not working for me.
i am giving the error messages i got.
java.lang.IllegalArgumentException: invalid element java type: 'java.lang.Object'
[jwsc] [SEVERE] Could not locate schema type bound to wrapped element type:
java.util.Vector
Plz help
Thanx in advance

Similar Messages

  • Web Service Complex Datatypes

    Does ColdFusion support nested complex data types when building Web Services?  See example CFCs below.  I keep getting a ServiceMethodNotFoundException.  In my SubmitNoticeOfAppt.cfc, the cfargument data type is NoticeOfAppointment.CFC which references other CFCs that define complex data types. The complex types are needed to support a really complex XML document that must be NIEM (National Information Exchange Model) compliant.  Originally tried passing the NIEM XML doument as a string, but receive deserialization errors, encounter child element.  Could get around the error by wrapping the XML string in <![CDATA[ ... ]]>, but this convention is not NIEM compliant.
    DocumentIssueDate.cfc
    <cfcomponent displayname="DocumentIssueDate" output="false">
       <cfproperty name="Date" type="date" required="No">
    </cfcomponent>
    DocumentAugmentation.cfc
    <cfcomponent displayname="DocumentAugmentation" output="false">
       <cfproperty name="DocumentIssueDate" type="any" required="No">
    </cfcomponent>
    DocumentIdentification.cfc
    <cfcomponent displayname="DocumentIdentification" output="false">
       <cfproperty name="IdentificationID" type="numeric" required="Yes">
       <cfproperty name="IdentificationCategoryDescriptionText" type="string" required="No">
    </cfcomponent>
    NoticeOfAppointment.cfc
    <cfcomponent displayname="NoticeOfAppointment" output="false">
       <cfproperty name="DocumentIdentification" type="any" required="Yes">
       <cfproperty name="DocumentAugmentation" type="any" required="Yes">
    </cfcomponent>
    SubmitNoticeOfAppt.cfc
    <cfcomponent style="document">
      <cffunction name="SubmitNoticeOfAppt" returnType="string" output="false" access="remote"> 
        <!---Arguments--->
          <cfargument name="NoticeOfApptXml" type="NoticeOfAppointment" required="Yes">
          <cfreturn "Notice of Appointment successfully received">
      </cffunction>
    </cfcomponent>
    Sample NoticeOfAppointment.xml       (Stripped down, actual message contains almost 200 elements with 20+ complex datatypes)
    <NoticeOfAppointment>
      <DocumentIdentification>
        <IdentificationID>000021199</IdentificationID>
        <IdentificationCategoryDescriptionText/>
      </DocumentIdentification>
      <DocumentAugmentation>
        <DocumentIssueDate>
          <Date>2011-04-07</Date>
        </DocumentIssueDate>
      </DocumentAugmentation>
    </NoticeOfAppointment>

    Coldfusion should be able to nest complex data types in your web service (after all, that's what the cfproperty tag was designed for).  Unfortunately, I have more experience consuming complex web services than designing them in CF. My Recommendation - inspect your web service WSDL using a tool that will generate the sample SOAP XML that will be needed to consume your web service.  You should be able to tell from that XML what the issue is - could be a missing namespace in your XML or strange nesting, etc.
    We use SOAPSonar from Crosscheck networks - they have a feww personal version that will allow you to inspect your web service interface and it will even generate the sample XML needed to call it via SOAP.
    Hope that helps.

  • Complex datatype in Web Services

    The work involved in handling complex datatype as part of the Web Services
    (JDev 9.0.3) seems to be very complex and not very well documented. (as
    far as I can tell).
    Is there an easy way for a Java client to bypass the deserialization altogether
    and just get the raw SOAP XML as returned from a Web Service.
    From the Raw XML, we could use the regular parsing tools to do whatever
    is necessary with the data. For example, I would like to transform the
    XML returned by using a simple XSL transformation.
    This would bypass the complexity of mapping all elements of an object that
    I would not really use in Java anyway. (I would pass the result of the XSL
    transformation to a 'C' program (yes I know it's ugly, but I still use 'C' for
    processing data...)
    I would really appreciate if anybody had experience in doing something like
    that.
    Thanks.

    Hi Denis - I think I might have run into a similar prob. I have been able create and successfully test a web service as long as the input object types are Strings. When I try to do this with a complex data type it fails. "Complex" in this case means an object containing 2 string and 1 double (i.e. not a standard java.lang objects for which serializers are predefined).
    Did you encounter the following error message?
    [SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to deserialize a &apos;http://IWidgetConsumer.xsd:Widget&apos; using encoding style &apos;http://schemas.xmlsoap.org/soap/encoding/&apos;. [java.lang.IllegalArgumentException]]
    Process exited with exit code 0.
    Thanks
    X

  • PL/SQL Web Service failing to generate Table of Raw datatype

    Trying to generate web services from pl/sql stored procs. Most work fine, but getting the following errors:
    Error(33,5): field _lazyArray not found in class mergepkg.MergewsSignatures
    Error(26,14): method setArray(byte[][]) not found in class mergepkg.MergewsSignatures
    which I'm thinking seems to be related to a table of raw type
    TYPE fields IS TABLE OF table.field%TYPE INDEX BY BINARY_INTEGER;
    where table.field%TYPE is RAW(64)
    I read that LONG and LONG RAW are not allowed, but my (limited) understanding is that RAW converts to byte.
    Any insights appreciated.

    Hi Steffen,
    I did manage to get it to work by doing the following:
    drop type longcredit_list
    drop type longcredit_obj
    create type longcredit_obj as object
    (credit varchar2(200),
    parlrepid number(6),
    mbrid number(6),
    rdgid number(6))
    create type longcredit_list as table of longcredit_obj
    create or replace package longcredit_pck as
    function get_longcredit(initials in varchar2) return longcredit_list;
    end longcredit_pck;
    create or replace package body longcredit_pck as
    function get_longcredit(initials in varchar2) return longcredit_list
    as
    v_longcredit_obj longcredit_obj:=longcredit_obj(null,null,null,null);
    v_longcredit_list longcredit_list:=longcredit_list();
    i number:=1;
    cursor getlist is
    select distinct a.credit, a.parlrepid, a.mbrid, a.rdgid
    from member_credits_test_vw a
    where upper(init) = upper(initials)
    order by a.parlrepid;
    begin
    for rec in getlist loop
    v_longcredit_obj.credit := rec.credit;
    v_longcredit_obj.parlrepid := rec.parlrepid;
    v_longcredit_obj.mbrid := rec.mbrid;
    v_longcredit_obj.rdgid := rec.rdgid;
    v_longcredit_list.extend;
    v_longcredit_list(i):=v_longcredit_obj;
    i:=i+1;
    end loop;
    return v_longcredit_list;
    end get_longcredit;
    end longcredit_pck;
    Also, before deploying, in jdeveloper, in the deploy file, I select the property filters under web-inf\classes and check all the classes that are unchecked (see thread id 505217).
    Also, the database I'm using now is v. 10.2.0.3.0.
    Thanks for your suggestion!
    Carmen.

  • Some data is missing while returning complex datatype from a web service

    Hi
    I am returning a complex data type from a web service. complex data type has a super class and some(not all) values from this super class are not being returned to the client. Strange part is that it giving some fields from super class and some values are not returned.
    I saw the soap response also it does not show any tag for those fields. but while creating a response i am setting some string values to those fields but i am not getting at client side.
    all the serailiastion and deseialization classes where created using ANT tasks and i have checked that all the cedec classes have been created.

    for what it's worth, the same problem was reported by one of our developers, although the string size was considerably smaller (probably less then 1 MB). According to him, soap clients generated from apache tools could connect fine and process the XML records. JDev hung. We simply changed our use case to return smaller results sets, but perhaps you could also generate your clients with WSDL2Java rather then JDev (if it is a truly a bug in JDev SOAP)? Can you add record parameters to the payload, in order to limit the results and scroll between remaining rows?

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==&gt; Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

  • Bugs in BC CRM web service need to be fix (Server was unable to process request ERROR: A server error has occured)

    I'm using the following code to retrieve order list is working fine but it give me an error Server was unable to process request ERROR: A server error has occurred when I trying to retrieve order total paid with same code: and the output when retrieve order total paid is [object Object]
    var wsUrl = "https://mysite.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx?WSDL";
                          var RetrieveTotalPaidXML =
                          '<?xml version="1.0" encoding="utf-8"?>\
                          <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">\
                          <soap12:Body>\
                          <Order_RetrieveTotalPaid xmlns="http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice">\
                          <username>user</username>\
                          <password>pass</password>\
                          <siteid>111222</siteid>\
                          <orderId>112345</orderId>\
                          </Order_RetrieveTotalPaid>\
                          </soap12:Body>\
                          </soap12:Envelope>';
                           $.ajax({
                            type: "POST",
                            url: wsUrl,
                            Host: "mysite.worldsecuresystems.com",
                            contentType: "application/soap+xml; charset=utf-8",
                            data: RetrieveTotalPaidXML,
                            dataType: "xml",
                            success: processSuccess,
                            error: function(){alert("Error: Something went wrong");}
                           function processSuccess(ResData) {
                           var RetrieveTotalPaidParse = $.parseXML(ResData);
                           var $xmlRetrieveTotalPaidParse = $(RetrieveTotalPaidParse);
                           var $Order_RetrieveTotalPaidResult = $xmlRetrieveTotalPaidParse.find('Order_RetrieveTotalPaidResult');
                                   $Order_RetrieveTotalPaidResult = $(this).find('Order_RetrieveTotalPaidResult').text();
                                   $('#RetrieveTotalPaidResult').text(Order_RetrieveTotalPaidResult);
    I think there a bug in BC CRM Web Service when trying to make a request for Order_RetrieveTotalPaid using soap need to be fix

    Perhaps it would be good to update the sample request as shown on the  Developer reference page for this method (and, actually ALL of the SOAP samples)
    The sample shows siteid (all lower case)

  • Possible to do BDC in a Web service?

    Hi,
    I need to create a BDC program that can create a Batch Input session. I have a external program that will trigger this BDC program.
    I was thinking if it is possible to create a RFC that contain the BDC code and eventually created a Web service that is usable by the external program?
    Please advise.
    Regards,
    Rayden

    Hi and welcome to the forum.
    When you use the DATE datatype, you can simply subtract dates in Oracle, using sysdate for example.
    Let's say your Date completed is 01-mar-2010:
    SQL> create table t as select to_date('01-03-2010') date_completed from dual;
    Table created.
    SQL> select date_completed
      2  ,      trunc(sysdate-date_completed) number_of_days
      3  from   t;
    DATE_COMPLETED      NUMBER_OF_DAYS
    01-03-2010 00:00:00             10See the Oracle Documentation @ http://tahiti.oracle.com for more explanations and examples regarding the DATE datatype, and other date related functions.

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

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

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

  • EJB 3.0 Web Services - Custom Request/Response Wrappers

    Hi All,
    I'm having an issue using Document Literal Wrapped web services with EJB 3.0. I have declared a service endpoint interface(SEI) in one jar file, along with custom wrapper classes for the requests and responses. The wrappers have the XML content customized a bit (different type names, etc.), but should be compatible with the @RequestWrapper and @ResponseWrapper annotations. The implementation is in an EJB jar file that includes the jar with the SEI in it. My issue is that the wrapper classes I declared are not being used, and instead new ones are being generated. Is it even possible for it to use supplied wrappers, or does it have to generate its own (and if so, is it in any way possible to specify the XML types it generates). I've tested this with wsgen, and I get the same result (new wrapper classes, the ones I supplied ignored) as when I deploy it. Here is the output from wsgen:
    Note: ap round: 1
    [ProcessedMethods Interface: com.company.IngestorService]
    [should process method: ingestProductDirectory hasWebMethods: false ]
    [endpointReferencesInterface: true]
    [declaring class has WebSevice: true]
    [returning: true]
    [WrapperGen - method: ingestProductDirectory(java.lang.String,java.lang.String)]
    [method.getDeclaringType(): com.company.IngestorService]
    [requestWrapper: com.company.IngestProductDirectoryRequest]
    [should process method: datatypes hasWebMethods: false ]
    [endpointReferencesInterface: true]
    [declaring class has WebSevice: true]
    [returning: true]
    [WrapperGen - method: datatypes()]
    [method.getDeclaringType(): com.company.IngestorService]
    [requestWrapper: com.company.DatatypesRequest]
    com\company\DatatypesRequest.java
    com\company\DatatypesResponse.java
    com\company\IngestProductDirectoryRequest.java
    com\company\IngestProductDirectoryResponse.java
    Note: ap round: 2
    I note that is says "hasWebMethods: false". Could that be an issue? Could it not be seeing my methods as web methods. The SEI and the implementation class are in different jar files and different packages. Could this be an issue?
    Here is the web service interface:
    @WebService(
    name = "IngestorService",
    targetNamespace = "http://company.com/"
    @SOAPBinding(
    style = SOAPBinding.Style.DOCUMENT,
    parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
    public interface IngestorService
    @WebMethod(
    action = "http://company.com/ingestProductDirectory"
    @WebResult(
    name = "response",
    targetNamespace = ""
    @RequestWrapper(
    className = "com.company.IngestProductDirectoryRequest"
    @ResponseWrapper(
    className = "com.company.IngestProductDirectoryResponse"
    public void ingestProductDirectory(
    @WebParam(
    name = "sourceDirectory",
    targetNamespace = ""
    String sourceDirectory,
    @WebParam(
    name = "datatype",
    targetNamespace = ""
    String datatype);
    @WebMethod(
    operationName = "datatypes",
    action = "http://company.com/datatypes"
    @WebResult(
    name = "datatypes",
    targetNamespace = ""
    @RequestWrapper(
    localName = "DatatypesRequest",
    className = "com.company.DatatypesRequest"
    @ResponseWrapper(
    localName = "DatatypesResponse",
    className = "com.company.DatatypesResponse"
    public List datatypes();
    Here are the datatype request and response wrappers:
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(
    name = "DatatypesRequest"
    public class DatatypesRequest
    DatatypesResponse.java:
    @XmlAccessorType(XmlAccessType.PROPERTY)
    @XmlType(
    name = "DatatypesResponse",
    propOrder =
    "datatypes"
    public class DatatypesResponse
    private List<String> _datatypes;
    @XmlElementWrapper(
    name = "datatypes",
    required = true,
    nillable = false
    @XmlElement(
    name = "datatype",
    required = false
    public List<String> getDatatypes() {
    if (_datatypes == null) {
    _datatypes = new ArrayList<String>();
    return _datatypes;
    Any help would be greatly appreciated. Thanks.

    I have been trying to do the same... and it seems to be impossible... (or completly undocumented).
    It seems that OC4J 10.3.x is ... no exactly fully EJB3/J2EE5 compliant...
    Or something like that:
    http://blogs.infosupport.com/berte/archive/2005/09/09/1117.aspx
    IMHO... OC4J 10.3.x is still a preview for OC4J 11...
    OC4J 10.3.x is kind of a J2EE4/5 hybrid... if you start digging in the documentation, you will find out that the only
    way to have WS-Security is going back to J2EE4 http://www.oracle.com/technology/products/jdev/howtos/1013/wssecure/10gwssecurity_howto.html
    (of course, I hope you probe me wrong)
    Message was edited by:
    luxspes

  • Failed to Install the "Oracle Web Services Manager Configuration Assistant"

    The installation of "Oracle Web Services Manager Configuration Assistant" was failed when I installed the "Oracle SOA Suite 10.1.3.1.0" ,and the failure information about the installation in the log show as follows, I need your help,thanks a lot!
    start-olite:
    Starting OLite in background ...
    Running:D:\product\10.1.3.1\OracleAS_1\integration\esb\sql\other\wfeventc.sql
    Exception in thread "main" oracle.tip.esb.install.exception.InstallationDBException: Failed to execute sql file"D:\product\10.1.3.1\OracleAS_1\integration\esb\sql\other\wfeventc.sql"
         at oracle.tip.esb.install.db.RunSQLScript.runScript(Unknown Source)
         at oracle.tip.esb.install.db.RunSQLScript.runScriptListInternal(Unknown Source)
         at oracle.tip.esb.install.db.RunSQLScript.runScriptList(Unknown Source)
         at oracle.tip.esb.install.db.NonOracleDB.runScripts(Unknown Source)
         at oracle.tip.esb.install.db.OLite.install(Unknown Source)
         at oracle.tip.esb.install.db.InstallerMain.main(Unknown Source)
    Caused by: java.sql.SQLException: [POL-3023] ????????
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinDriverConnect(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCConnection.connect(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCFactory.createConnection(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCConnection.<init>(Unknown Source)
         at oracle.lite.poljdbc.OracleConnection.<init>(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCDriver.connect(Unknown Source)
         at oracle.tip.esb.install.db.DriverManagerDataSource.getConnection(Unknown Source)
         ... 6 more
    Java Result: 1
    Importing Default System ...
    ${env.PCHOME}
    stop-olite:
    Stopping background OLite process ...
    CA::DEBUG:******:Finished OLite Install ...
    Finished Olite configuration ...
    BUILD SUCCESSFUL
    Total time: 12 seconds
    Exit: 0
    TASK: oracle.tip.esb.install.tasks.ConfigureOC4J
    Configuring OC4J ...
    id value is 2
    id value is IASPT
    process-type value is 1
    id value is 3
    id value is IASPT
    id value is 3
    id value is ASG
    process-type value is 1
    id value is 2
    id value is ASG
    id value is 1
    id value is default_group
    process-type value is 1
    id value is 3
    id value is home
    process-type value is 1
    process-type value is 2
    process-type value is 1
    final map size value is 2
    id value is -Xrs -server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false
    Jun 22, 2010 2:39:09 PM oracle.tip.esb.install.tasks.ConfigureOC4J getOpmnRequestPort
    INFO: Port value is 6003
    D:\product\10.1.3.1\OracleAS_1\jdk\bin\java -Dant.home=D:\product\10.1.3.1\OracleAS_1\ant -classpath D:\product\10.1.3.1\OracleAS_1\ant\lib\ant.jar;D:\product\10.1.3.1\OracleAS_1\ant\lib\ant-launcher.jar;D:\product\10.1.3.1\OracleAS_1\integration\esb\lib\ant-contrib-1.0b1.jar org.apache.tools.ant.Main -Dinstall.type=SoaBasic -Desb.home=D:\product\10.1.3.1\OracleAS_1\integration\esb -Doc4j.home.dir=D:\product\10.1.3.1\OracleAS_1 -Djava.home=D:\product\10.1.3.1\OracleAS_1\jdk -Doracle.home=D:\product\10.1.3.1\OracleAS_1 -Dhost.name=dpxc67-01 -Ddb.vendor=olite -Dimport.export.db_url=jdbc:polite4@localhost:1531:oraesb -Desb.appserver=ias_10.1.3 -Doc4j.design_time_host=dpxc67-01 -Doc4j.design_time_port=8888 -Dprimary.container=home -Dinstall.mode=OracleInstallerias_10.1.3_SoaBasic -Dsso=true -Dinstall.component=install-developer -Dias.name=soademo.dpxc67-01 -Denv.OC4J_STANDALONE_HOME=D:\product\10.1.3.1\OracleAS_1 -Dias_admin.password=*password cannot be displayed* -Denv.JAVA_HOME=D:\product\10.1.3.1\OracleAS_1\jdk -Denv.SERVER_ADMIN_PASSWORD=*password cannot be displayed* -Dopmn.requestport=6003 -Ddb.vendor=olite -Ddb.connect.string=jdbc:polite4@localhost:1531:oraesb -Ddb.username=system -Dias.virtual_host=dpxc67-01 -Denv.DB_USER=system -Denv.DB_URL=jdbc:polite4@localhost:1531:oraesb -Desb.oc4j.container=home -Denv.DB_PASSWORD=*password cannot be displayed* -Ddb.password=*password cannot be displayed* -e -buildfile esbinstall.xml deploy-applications
    Buildfile: esbinstall.xml
    Trying to override old definition of datatype echoproperties
    common_update_server.xml:
    Adding shared library apache.junit ...
    Adding shared library oracle.db.lite ...
    Adding shared library apache.commons 10.1.3 ...
    Adding shared library apache.jdom ...
    Adding shared library apache.slide ...
    Running batch script by:
    java admin_client.jar deployer:oc4j:opmn://dpxc67-01:6003/home -script D:\product\10.1.3.1\OracleAS_1\integration\esb\install\ant-tasks/esb_admin_client_script_sl.txt
    publishSharedLibrary command was successful
    publishSharedLibrary command was successful
    publishSharedLibrary command was successful
    publishSharedLibrary command was successful
    publishSharedLibrary command was successful
    publishSharedLibrary command was successful
    update_server.xml:
    Adding shared library oracle.esb ...
    deployer.url: deployer:oc4j:opmn://dpxc67-01:6003/home
    publishSharedLibrary command was successful
    deploy-applications:
    Deploying ESB design time ...
    Binding ESB design time ...
    Deploying ESB run time ...
    Binding ESB runtime ...
    Deploying orainfra.ear ...
    Binding orainfra ...
    Running batch script by:
    java admin_client.jar deployer:oc4j:opmn://dpxc67-01:6003/home -script D:\product\10.1.3.1\OracleAS_1\integration\esb\install\ant-tasks/esb_deployapps.txt
    10/06/22 14:39:20 Notification ==>Application Deployer for esb-dt STARTS.
    10/06/22 14:39:20 Notification ==>Copy the archive to D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-dt.ear
    10/06/22 14:39:20 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-dt.ear begins...
    10/06/22 14:39:20 Notification ==>Unpacking esb-dt.ear
    10/06/22 14:39:21 Notification ==>Done unpacking esb-dt.ear
    10/06/22 14:39:21 Notification ==>Unpacking esb_console.war
    10/06/22 14:39:22 Notification ==>Done unpacking esb_console.war
    10/06/22 14:39:22 Notification ==>Unpacking esb-jca-dt.rar
    10/06/22 14:39:22 Notification ==>Done unpacking esb-jca-dt.rar
    10/06/22 14:39:22 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-dt.ear ends...
    10/06/22 14:39:22 Notification ==>Starting application : esb-dt
    10/06/22 14:39:22 Notification ==>Initializing ClassLoader(s)
    10/06/22 14:39:22 Notification ==>Initializing EJB container
    10/06/22 14:39:22 Notification ==>Loading connector(s)
    10/06/22 14:39:22 Notification ==>Starting up resource adapters
    10/06/22 14:39:23 Notification ==>Warning. Unable to set up connection factory to location esb-dt for a resource adapter in {1}
    10/06/22 14:39:23 Notification ==>Initializing EJB sessions
    10/06/22 14:39:23 Notification ==>Committing ClassLoader(s)
    10/06/22 14:39:23 Notification ==>Initialize esb_console begins...
    10/06/22 14:39:23 Notification ==>Initialize esb_console ends...
    10/06/22 14:39:23 Notification ==>Started application : esb-dt
    10/06/22 14:39:23 Notification ==>Application Deployer for esb-dt COMPLETES. Operation time: 2875 msecs
    10/06/22 14:39:23 Notification ==>Application Deployer for esb-rt STARTS.
    10/06/22 14:39:23 Notification ==>Copy the archive to D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-rt.ear
    10/06/22 14:39:23 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-rt.ear begins...
    10/06/22 14:39:23 Notification ==>Unpacking esb-rt.ear
    10/06/22 14:39:23 Notification ==>Done unpacking esb-rt.ear
    10/06/22 14:39:23 Notification ==>Unpacking provider-war.war
    10/06/22 14:39:23 Notification ==>Done unpacking provider-war.war
    10/06/22 14:39:23 Notification ==>Unpacking esb-jca-rt.rar
    10/06/22 14:39:23 Notification ==>Done unpacking esb-jca-rt.rar
    10/06/22 14:39:23 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-rt.ear ends...
    10/06/22 14:39:23 Notification ==>Starting application : esb-rt
    10/06/22 14:39:23 Notification ==>Initializing ClassLoader(s)
    10/06/22 14:39:23 Notification ==>Initializing EJB container
    10/06/22 14:39:23 Notification ==>Loading connector(s)
    10/06/22 14:39:23 Notification ==>Starting up resource adapters
    10/06/22 14:39:23 Notification ==>Warning. Unable to set up connection factory to location esb-rt for a resource adapter in {1}
    10/06/22 14:39:23 Notification ==>Initializing EJB sessions
    10/06/22 14:39:23 Notification ==>Committing ClassLoader(s)
    10/06/22 14:39:23 Notification ==>Initialize provider-war begins...
    10/06/22 14:39:23 Notification ==>Initialize provider-war ends...
    10/06/22 14:39:23 Notification ==>Started application : esb-rt
    10/06/22 14:39:23 Notification ==>Application Deployer for esb-rt COMPLETES. Operation time: 203 msecs
    10/06/22 14:39:24 Notification ==>Application Deployer for orainfra STARTS.
    10/06/22 14:39:24 Notification ==>Copy the archive to D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\orainfra.ear
    10/06/22 14:39:24 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\orainfra.ear begins...
    10/06/22 14:39:24 Notification ==>Unpacking orainfra.ear
    10/06/22 14:39:24 Notification ==>Done unpacking orainfra.ear
    10/06/22 14:39:24 Notification ==>Unpacking orainfra.war
    10/06/22 14:39:24 Notification ==>Done unpacking orainfra.war
    10/06/22 14:39:24 Notification ==>Initialize D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\orainfra.ear ends...
    10/06/22 14:39:24 Notification ==>Starting application : orainfra
    10/06/22 14:39:24 Notification ==>Initializing ClassLoader(s)
    10/06/22 14:39:24 Notification ==>Initializing EJB container
    10/06/22 14:39:24 Notification ==>Loading connector(s)
    10/06/22 14:39:24 Notification ==>Starting up resource adapters
    10/06/22 14:39:24 Notification ==>Initializing EJB sessions
    10/06/22 14:39:24 Notification ==>Committing ClassLoader(s)
    10/06/22 14:39:24 Notification ==>Initialize orainfra begins...
    10/06/22 14:39:24 Notification ==>Initialize orainfra ends...
    10/06/22 14:39:24 Notification ==>Started application : orainfra
    10/06/22 14:39:24 Notification ==>Application Deployer for orainfra COMPLETES. Operation time: 219 msecs
    dehydrationStore:
    Configuring data sources for olite dehydration store ...
    ${env.PCHOME}
    install-developer:
    design time host dpxc67-01
    design time port 8888
    primary container home
    the host is dpxc67-01and the port is 8888
    Exception in thread "main" oracle.tip.esb.install.exception.InstallationDBException: Connection Refused ""
         at oracle.tip.esb.install.db.NonOracleDB.runConnectionTest(Unknown Source)
         at oracle.tip.esb.install.db.NonOracleDB.load(Unknown Source)
         at oracle.tip.esb.install.ESBInstaller.setupDB(Unknown Source)
         at oracle.tip.esb.install.ESBInstaller.handleDesignTimeSpecificActions(Unknown Source)
         at oracle.tip.esb.install.ESBInstaller.main(Unknown Source)
    Caused by: java.sql.SQLException: [POL-3023] ????????
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinDriverConnect(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCConnection.connect(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCFactory.createConnection(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCConnection.<init>(Unknown Source)
         at oracle.lite.poljdbc.OracleConnection.<init>(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCDriver.connect(Unknown Source)
         at oracle.tip.esb.install.db.DriverManagerDataSource.getConnection(Unknown Source)
         ... 5 more
    Java Result: 1
    Copying 1 file to D:\product\10.1.3.1\OracleAS_1\j2ee\home\lib\ext
    set_app_sso_option:
    Using sso=true. Redeploying esb-dt with sso
    Copying 1 file to D:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\esb-dt\META-INF
    Copying 1 file to D:\product\10.1.3.1\OracleAS_1\j2ee\home\application-deployments\esb-dt

    It could be due to system language setting -
    install SOA Suite failed
    Regards,
    Anuj

  • Help need in Java Web Service method receiving object values as null

    Below is my web method and Package is the object received from dotnet client as a consumer. I have also defined the Package object structure. Now when I receive the data from dotnet I get only identifier value, but I get ownerid and price as null, even both values are sent by Dotnet client. I want to know whether only primitive datatype in java web service works or I need to do some configuration changes in order to have build in Wrapper class datatypes? It would be a great help if somebody explains.
    @WebMethod
    @WebResult(name = "PackageId")
    public long createNewPackage(@WebParam(name = "Package") com.db.radar.wl.data.Package data1,@WebParam(name = "PackageDetail") PackageDetail data2,@WebParam(name = "PackageTrade") PackageTrade data3);
    public class Package {
    Long ownerid;
    Double price;
    long identifier;
    }

    Hi ,
    I am getting the same error. I am running my application on jboss-4.0.4.GA. Please let me know the version of jboss that you to got it working.
    Thanks
    Viv

  • Creatin Web Service in NWDS 7.0 to handle WSDL from PI 7.1

    Hi all,
    I created in PI 7.1 a service interface in ESR with following details:
    Name:                         iaBillerDirect
    Namespace:               http://corpintra.net/pi/CBFC_GLOBAL_SAP_APPL/BillerDirect
    used message type:  BillerDirectMessage
    Operation:                  iaBillerDirect
    In NWDS 7.01 I first tried to build a web service based on the WSDL of the service interface. But unfortunately, NWDS does not have any possibility to create a web service based on a WSDL. (NWDS 7.1 has - but not NWDS 7.0)
    So I created an EJB on my own. Here I created a java class "net.corpintra.pi.cbfc_global_sap_appl.billerdirect.BillerDirectMessage" which I used as Datatype for new created EJB "net.corpintra.pi.cbfc_global_sap_appl.billerdirect.IaBillerDirect".
    I added a business method "iaBillerDirect(net.corpintra.pi.cbfc_global_sap_appl.billerdirect.BillerDirectMessage billerDirectMessage)" to my EJB and created a web service based on this.
    (The class Biller Direct Message has the same internal structure as the message type on PI.)
    When I delpoy the Web Service to the SAP J2EE 7.0 I can test the web service successfully in Web Service Navigator.
    When I now create according objects in PI Integration Builder and send a test message via PI to the web service I get following error:
    An error occurred while processing the message security. Reason: com.sap.engine.interfaces.webservices.runtime.OperationNotFoundException Found 0 operation definitions using keys: Key name:'first-body-element-ns' key value:'http://corpintra.net/pi/CBFC_GLOBAL_SAP_APPL/BillerDirect'; Key name:'SoapRequestWrapper' key value:'BillerDirectMessage'; . See trace entry no trace for com.sap.security.core.server.ws.service.ServerSecurityProtocol (severity above PATH).
    Can you please advice why I get this error trying to reach the web service via PI? How can I fix this?
    Or is there even a good solution how to create a web service in NWDS 7.0 (based on Eclipse 2.1.2) based on a WSDL?
    regards
    René

    Hi Jurmann,
                      I m facing same Issue with WSDL , it is working with NWDS 7.1 and not with 7.0 ..
    can you help me this how to fix this issue..
    i need to create webservice in NWDS 7.0 version
    Thanks in advance
    regards,
    Sidhu

  • Calling Reporting Services Web Service with jQuery possible?

    Hi,
    is it possible to call the Reporting Services Web Service with jQuery? If yes, can someone post me a small example?
    Background:
    My plan is to create a html with a form which is also uploaded then into the reportserver. I open this html later by clicking a link in a report (with gotoURL open.window). The report opens the html inclusive the overtaken of some additional parameters
    (reportname, reportdescription). These parameters I will use in the html-form as defaultvalues for the corresponding input-text-fields. Now the user can make some changes (i.e. the decription). With a click on a button I will send the new description to
    the Reporting Services Web Service by using the SetProperties method, closing the html-window and reload the report. Important is that I want to upload the html also into the reportserver itself.
    I have already found how to consume a web service via jQuery but with the Reporting Services Web Service I did not get it running in my tests.
    I have referenced to the following jQuery.js: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
    Here you can see my tests I made with the results:
    $.ajax({
    type: 'POST',
    url: 'http://<..>/ReportServer/ReportService2010.asmx/ListChildren',
    data: {'ItemPath':'/','Recursive':false},
    complete: function(xData, status) {
    $('p').html($(xData.responseXML).text()); // result
    $("#divStatus").text( status ); // status }
    I got a NULL response with Status success. But where are the items?
    Another test which should response only one value was that:
    $.ajax({
    type: "POST",
    contentType: "text/xml; charset=utf-8",
    url: "http://<..>/ReportServer/ReportService2010.asmx/GetItemType",
    data: {"Item":"/Development"}, // Development is a Folder in my Reportserver-Root
    dataType: "xml",
    success: function (msg) {
    $("#divResult").html(msg.responseXML);
    error: function (data, status, error) {
    $("#divResult").html("WebSerivce unreachable<br> <br>" + data.responseXML + "<br> <br>(" + error + ")");
    Here I got an [object Error]
    And here my last test:
    var soapMessage = '<?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>\
    <GetItemType xmlns="http://www.microsoft.com/sql/ReportingServer">\
    <ItemPath>/Development</ItemPath>\
    </GetItemType>\
    </soap:Body>\
    </soap:Envelope>';
    $.ajax({
    type: "POST",
    contentType: "text/xml; charset=utf-8",
    url: http://<..>/ReportServer/ReportService2010.asmx?wsdl,
    data: soapMessage,
    dataType: "xml",
    success: processSuccess,
    error: processError
    function processSuccess(data, status, req) {
    if (status == "success")
    $("#response").text($(req.responseXML).find("Type").text());
    function processError(data, status, req) {
    alert(req.responseText + " " + status);
    Here I got an "Undefined error"
    Can anyone help me?
    Thanks
    René Illner

    Hi Rene,
    I have one vbscript class to call web services. May be if you need you can use it.
         dim ws
         set ws = new webservice
         ws.url = "http://servername/ReportServer/ReportService2010.asmx"
         ws.method = "MethodName"
         ws.parameters.Add "Parameter1", "Param1 Desc.."
         ws.parameters.Add "Parameter2","[email protected].."
         ws.execute
         set ws = nothing
    '------web service calling class
    class WebService
      public Url
      public Method
      public Response
      public Parameters
      public function execute()
        dim xmlhttp
        Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
        xmlhttp.open "POST", Url & "/" & Method, false
        xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
        xmlhttp.send Parameters.toString
        response = xmlhttp.responseText
        set xmlhttp = nothing
      end function
      Private Sub Class_Initialize()
        Set Parameters = new wsParameters
      End Sub
      Private Sub Class_Terminate()
        Set Parameters = Nothing
      End Sub
    End class
    class wsParameters
      public mCol
      public function toString()
        dim nItem
        dim buffer
        buffer = ""
        for nItem = 1 to Count
          buffer = buffer & Item(nItem).toString & "&"
        next
        if right(buffer,1)="&" then
          buffer = left(buffer,len(buffer)-1)
        end if
        toString = buffer
      end function
      public sub Clear
        set mcol = nothing
        Set mCol = CreateObject("Scripting.Dictionary")
      end sub
      public sub Add(pKey,pValue)
        dim newParameter
        set newParameter = new wsParameter
        newParameter.Key = pKey
        newParameter.Value = pValue
        mCol.Add mCol.count+1, newParameter
        set newParameter = nothing
      end sub
      public function Item(nKey)
        set Item=mCol.Item(nKey)
      end function
      public function ExistsXKey(pKey)
        dim nItem
        for nItem = 1 to mcol.count
          if mCol.Item(nItem).key = pKey then
            ExistsXKeyword = true
            exit for
          end if
        next
      end function
      public sub Remove(nKey)
        mCol.Remove(nKey)
      end sub
      public function Count()
        Count=mCol.count
      end function
      Private Sub Class_Initialize()
        Set mCol = CreateObject("Scripting.Dictionary")
      End Sub
      Private Sub Class_Terminate()
        Set mCol = Nothing
      End Sub
    end class
    class wsParameter
       public Key
       public Value
       public function toString()
         toString = Key & "=" & Value
       end function
    end class
    Regards, RSingh

  • Error when using byte array in web service model interface

    Hello everybody,
    I'm using a web service model in my web dynpro application. The web service requires a byte array as import parameter.
    When starting the web dynpro application the following error occurs:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type java:byte not found
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:216)
    I'm using byte arrays several times in my application --> no problem. So why does the error say "byte not found" when using the web service?
    Thanks for your help!
    regards
    Christian

    Hi,
    maybe this is the problem. The type is byte and not binary.
    But I have the same problem as mentioned in the other thread: I can't change the type.
    The type in the WSDL of my web service is "base64binary". Is there maybe a possibility to import a jar-file for this type?
    Christian

Maybe you are looking for