How Can I parse a complex type WSDL using WSDL4J?

I cannot parse the element Area---helppppppppppp
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://testfinal" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://testfinal" xmlns:intf="http://testfinal" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://testfinal" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="x" type="xsd:string"/>
<complexType name="Area">
<sequence>
<element name="f" type="xsd:int"/>
<element name="fo" type="xsd:int"/>
</sequence>
</complexType>
<element name="f" type="impl:Area"/>
<element name="getSampleReturn" type="xsd:string"/>
<element name="sample" type="xsd:string"/>
</schema>
</wsdl:types>
<wsdl:message name="getSampleRequest">
<wsdl:part element="impl:x" name="x"/>
<wsdl:part element="impl:f" name="f"/>
</wsdl:message>

FYI, many folks on these forums are behind corporate firewalls that won't allow access to that sort of site. Particularly when the amount of code is small, as it is here, you're better off posting it in the forum
create or replace procedure myProcedure( i int ) is
  TYPE mapx IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
  TYPE mapy IS TABLE OF mapx INDEX BY VARCHAR2(64);
  instanceOfMapx mapx;
  instanceOfMapy mapy;
begin
    instanceOfMapx('Australia') := 30000000;
    instanceOfMapy('val1'):=instanceOfMapx;
    dbms_output.put_line('hi');
    /* i want here that in my procedure return this instanceOfMapy */
end myProcedure;If you want to modify that to return an instance of MAPY
1) You'll need to declare MAPX and MAPY in a package so that they can be referenced in multiple places
2) You'll need to add an OUT parameter to your procedure
The smallest change that would work would be
CREATE OR REPLACE PACKAGE map_pkg
AS
  TYPE mapx IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
  TYPE mapy IS TABLE OF mapx INDEX BY VARCHAR2(64);
END map_pkg;
create or replace procedure myProcedure( i IN integer, instanceOfMapy OUT map_pkg.mapy )
is
  instanceOfMapx map_pkg.mapx;
begin
    instanceOfMapx('Australia') := 30000000;
    instanceOfMapy('val1'):=instanceOfMapx;
    dbms_output.put_line('hi');
    /* i want here that in my procedure return this instanceOfMapy */
end myProcedure;Of course, practically, I'd expect that you'd likely want to move myProcedure into the package you created.
Justin

Similar Messages

  • Parse Complex type WSDL using WSDL4J==??????

    I cannot parse the arguments of "Area" helppppppppppp pleaseeeeeeeeee
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://testfinal" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://testfinal" xmlns:intf="http://testfinal" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema targetNamespace="http://testfinal" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="x" type="xsd:string"/>
    <complexType name="Area">
    <sequence>
    <element name="f" type="xsd:int"/>
    <element name="fo" type="xsd:int"/>
    </sequence>
    </complexType>
    <element name="f" type="impl:Area"/>
    <element name="getSampleReturn" type="xsd:string"/>
    <element name="sample" type="xsd:string"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="getSampleRequest">
    <wsdl:part element="impl:x" name="x"/>
    <wsdl:part element="impl:f" name="f"/>
    </wsdl:message>

    I cannot parse the arguments of "Area"Why not?

  • How can I parse the document in WebI using sdk?

    I wanna to parse the document in WebIntelligence using sdk. My question is :
    1) By which sdk, I can parse the document.  'Report Application Server SDK' ?
    2) I wanna to parse the 'Self-Defined SQL' and 'Query' components of the document. Can the sdk support this request ?
    My enviroment is  BO XI Release 2.
    Thanks all.

    Hi shao,
    1) By which sdk, I can parse the document. 'Report Application Server SDK' ?
    'Report Application Server SDK' is For Crystal reports so for WebIntelligence or DesktopIntelligence Report it is  "Report Engine SDK".
    Apart from this if you want to do more on these reports "BusinessObjects Enterprise SDK" can be used.
    You can get more information on below link for XI R2.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    For question 2,
    I am not sure about it but Report Engine SDK provides classes and interface of Data Providers.
    i.e. Building and Editing Data Providers   and  Working with Recordsets.
    Also you can have look on
    Report Engine SDK's
    Interface "Query"
    Hope these helps you.
    Thanks,
    Praveen.

  • How can an user defined Transaction type in Inventory be configured in IB?

    Need to know how to make an user defined transaction to update the status in IB automatically. i.e. suppose there is an user defined transaction "XYZ". I need to update the instance stause of an item to "CANCELLED" once that transaction happens on the item.
    Edited by: user13340970 on Aug 13, 2010 7:14 AM

    Hi Atheek,
    I was looking at doing the transform manually, but my challenge is how to parse the inbound String into XML Elements with their properties. For example:
    Example Message:
    <abd:TypedDocument>
    <abd:someElement>
    <abd:aString><jkl:embeddedMessage jkl:attributeABc="Hello There"><jkl:someOtherElement>OSB Rules!<jkl:someOtherElement><jkl:aNumber>123456</jkl:aNumber></jkl:embeddedMessage>
    </abd:aString>
    </abd:someElement>
    </abd:TypedDocument>
    If I get the value of the embedded XML as a string, how can I parse our or address the various elements and attributes in the embedded XML? I was hoping to use:
    $aString cast as jkl:embeddedMessage
    But on OSB10g this fails. Is there another way with XQuery or XSL to convert an embedded XML that comes in as a string, into a complex User-Defined type?
    Thanks,
    David.

  • I have result after execution of OperationBinding. How can i parse and store in list.

    I have result after execution of operation binding. how can i parse and store in list

    Hi,
    I Thought u have custom method in AM which returns List Data type. What is the requirement exactly, bcz commit operation have void return type.
    Ex: create custom method in AMimple class
    public List sampleData(){
    // code here to set the values in List object.
    now expose the above method in client interface. Then add the Method action binding in pageDef file and execute the below code in managed bean
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("sampleData");
                List result =(List) operationBinding.execute();
    Thanks
    Nitesh

  • How can i restrict the Expenditure Type values at a specific OU ?

    Dear Guys,
    I would like to ask about the Expenditure Types,
    I have implemented two projects for different Operating Units ,
    when navigating to any Projects responsibilty,and navigating the Expenditure Type field
    the values exist are all the values implemented across the OU not the values entered at this OU
    How can i restrict the Expenditure Type values at a specific OU
    Regards
    Amr Hussien

    Hello
    When you set up a project there is an option called Transaction Control.
    This option allow you to list the allowed or restricted elements of costs for the project.
    You may enter the transaction control on a project template and that will be copied to any new project.
    The cost elements may be expenditure types, expenditures categories, suppliers, employees, etc.
    In your case, I suggest to set up specific project templates for each operating units. On each template enter the list of allowed expenditures types for that OU.
    Doing so, the system restricts users from entering any expenditure item, supplier invoice, purchase cost etc, against an expenditure type, which is not allowed.
    Dina

  • How can i call a condition type into my ALV report

    I am developing one ALV report in that how can i call a condition type.I am one condition type PB00 for special price.This special price column should be present at the output list.This special price is not there any one of the database tables.So we will create one condition type for this.How can I develop one condition type and how we may call this condition type into my ALV report.

    V/06 is the condition type transaction .You attach a Access sequence to that which is stored in V/07 .
    there you can also get based on key combination tables names .
    which you can used in your report to include in the ALV .
    Contion type PB00 Access sequence PB00
    which will have step say
    Step Table combination 
    1      071       Material plant
    2      142       SO/dc/DV
    here Application would A and table would A table number .
    for eg .A071 .

  • How can I get the camera type of a photo?

    I want to select photos according to camera type using AplleScript.
    How can I get this information?
    (I used 'properties' but did not succed in selecting one out of the 24 items.)
    Hans

    This is what Larry is referring to. Pick your camera from those in the list:
    NOTE: only cameras used for photos in the iPhoto library will be listed.
    OT

  • How can prevent duplication of condition types in sales order??

    How can prevent duplication of condition types in sales order.
    While we want Amount field Changeable by user.
    Please give me solution.

    Dear Rohit,
    Can you explain your scenario in detail with an example or any screen shot so that we will help you in easy way ...
    Regards,
    C.B Reddy

  • How can I call a condition type in my ALV report

    I am having one condition type.Then how can I call a condition type in my ALV report.

    Hi,
    If you have any conditions then filter your data according to that conditions through SQl queries.
    And then display it through ALV.
    Regards
    Mudit

  • How can I get network data type

    how can I get network data type: ip, gatway, sub mask, and DNS on the Mac. windwos system and so go on and put cmd ipconfig / all adiquirr how can this data in mac book pro XOS.
    thanks,
    Marcello

    Select  ▹ System Preferences ▹ Network ▹ Advanced ▹ TCP/IP.

  • How can i find differnet output types for a given sales order ?

    hi all,
    answer my question please........?
    how can i find differnet output types for a given sales order ?

    hi
    check in NACO transaction if you have assigned access sequence to your output ytpes and if you have ticked checkbox "Access to output conditions" - otherwise it will not even try to access condition records.
    From help :
    Access to output conditions
    Indicates whether the system determines the output by searching for valid
    condition records.
    Procedure
    If you want the system to search condition records for the appropriate
    output, mark the field.
    Note
    If you leave the field blank and if you are processing sales, shipping,
    or billing documents, the system automatically determines output from
    information stored in the customer master record.
    regards
    ravish
    <b>plz reward points if helpful</b>

  • How can we change the valuation type for a material created.

    How can we change the valuation type for a material created.
    Note : All open orders are closed for this material.3
    Please guide

    Hi,
    You can change valuation class, or you can set valuation category for your material master. If valuation category is set you can extend your material master and in this way creating records for different valuation types.
    Please try to set the desired changes in your mmr (MM02) > save > SAP will give you error message > push 'Display error' button and you will see what conditions must be eliminated to carry out the change.
    - you are not allowed to have open transactional data
    - no stock in the current and previous period (using proper posting date in MB1A + 201 you can reduce your stock level to 0, and after that you can set it back by MB1A + 202)
    - in case of valuation category setting batch archiving may be necessary
    BR
    Csaba

  • How can we change the inspection type

    Hi
    Can any one answer my question.... How can we change the inspection type...I think its not possible through BDC and i am not able to find any custom program for LSMW...Any help?
    Thanks,
    Aparna

    Hi
    For indivial material you can change it from MM02 . ( Select Insp.setup under Quality Management view) and again choose for Create new Inspection Type
    For  multiple or mass change MM17
    Edited by: Sanjay  Shah on Feb 19, 2010 10:43 AM

  • How can I see the processor type in my ipad 4

    How can I see the processor type as A6X in my ipad 4

    All iPad 4s have the A6X chip in it - if you type in the iPad's serial number (Settings > General > About > Serial Number) in on this page then that will confirm whether it's an iPad 4

Maybe you are looking for

  • Is there a way to apply all the font styles before importing the file

    Hi, I've some text as below in a text file that needs to be imported into InDesign. "Law of Civil Procedures" And in InDesign this is to be made bold. I want to know if there is a way to make it bold directly and then import it into InDesign, I'm ask

  • ICal issues, external e-mail notification/invite problem, iPhone

    I'm having some problems with the iCal setup on my Mac server. In particular: 1 - I can't send invitations out to external email addresses. Or perhaps I just don't get the responses 2 - My Page calendar never loads (used to work) 3 - CalDAV calendars

  • Dynamic URL in SOAP Receiver adapter

    Hi all, I have a scenario where I am using a SOAP receiver adapter to send a cXML document to some vendors. I need to change the URL based on the vendor number (passed by sender SRM system). So I have created a user-defined function and used in messa

  • What SQL Server Agent jobs are currently running and for how long

    Is there a way to tell what SQL Server Agent jobs are currently running and for how long?  View history isn't working in my case because it's only showing completed jobs.  John Schroeder

  • Remove descriptions from all photos

    Hello I've been importing photographs into iPhoto from several different people. They have all used different methods of describing the photos (in the 'description' field). Is there a way to select all the photos (about 3,000) and remove the descript