Using the Soap Encoding schema within an XSD

Hi,
I am trying to create some XSDs based on the types from the auto-generated WSDLs in JDeveloper. However, I find that while the Array type works fine in the WSDL, I cannot seem to get it validate correctly in my XML schemas, possibly due to some namespace error.
The current code in the XSD is given as:
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="VesselQueryResult">
<xsd:all>
<xsd:element name="vesselNames" type="ArrayOfjava_lang_String"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ArrayOfjava_lang_String">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
When I tried to add this XSD using as a user schema, however, below validation error is being displayed:
Error: Line 0, Column 0: Invalid reference: 'http://schemas.xmlsoap.org/soap/encoding/:Array'
I tried to qualify the SOAP-ENC namespace with the schemaLocation, but another error was displayed:
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
oracle.xml.parser.schema.XSDException: Server returned HTTP response code: 407 for URL: http://schemas.xmlsoap.org/soap/encoding/
I am wondering how JDeveloper supports the SOAP-ENC schema for use in XSDs. Do I need to add the Soap Encoding schema as a user schema, or is there a way I might reference it similar to the way that auto-generated WSDLs seem to deal with it? Any information regarding this would be greatly appreciated.
Thank you and regards.

I deleted the two lines of coding below:
utl_http.set_proxy('www-proxy', NULL);
utl_http.set_persistent_conn_support(TRUE);
and then I set the utl_http.set_persistent_conn_support() to False to get that error message. Seems like the website in question doesnt have the webservice anymore because the error has to do with the parsing of the WSDL file.... which probrably doesnt exist.
Im just trying to get a working example of using a third party webservice to return a value to be displayed in the database.... know of any good examples? The ones im using seem to be pretty out dated... the barnes and nobles example just times out....

Similar Messages

  • Can multiple APEX application use the same parsing schema?

    Hi,
    I have 4.2 APEX thru pl/sql Gatewat, 11gr2 DB and using theme 24.
    Due to the APEX limitation for version control I would be splitting 1 big ERP applications into 24 different APEX applications and each application would be considered as 1 unit for version control.
    I have about 800 tables and I would assume that all of these would need to be stored in 1 schema since a lot of these table are linked thru FK.
    Can I have multiple APEX APPS using the same parsing schema? or is there a better way to do this?
    Thanks in advance!

    Hi,
    Multiple applications can have same (one) parsing schema.
    You can test that on e.g. apex.oracle.com, where normally you have only one schema and you create multiple applications and all use that same schema.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jan 28, 2013 7:15 PM

  • Using the SOAP inbound channel of the Integration Engine

    Hi,
    I am following the blog of Stefan Grube.
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    However I have difficulties.
    Is this blog still relevant for SAP PI7.10?
    I have set this up as a test for a scenario I have.
    Current Scenario NOT using your Blog and working perfectly.
    SandBox PI       Development PI
    File > SOAP  >   SOAP > ABAP Proxy
    What I am attempting now is.
    SandBox PI      Development PI
    File > SOAP  >  Integration Engine > ABAP Proxy
    I am using our SAP PI Sandbox to push a SOAP message using a Receiver SOAP adapter channel.
    Transport Protocol: u201CHTTPu201D
    Message Protocol: u201CSOAPu201D
    Conversion Parameters:      u201CDo not Use SOAP Envelopeu201D
    Target URL: u201Chttp://<Integratio Server Host Development PI>:<Port>/sap/xi/engine?type=entry&version=3.0&Sender.Service=FigmentD&Interface=urn:figment-co-za:fleetcard:efuel_50ppm^oa_Msg50ppm&QualityOfService=ExactlyOnce&sap-user=<PIAPPLUSER>&sap-password=<PASSWORD>u201D
    SOAP Action: u201Chttp://sap.com/xi/WebService/soap1.1u201D
    I am however getting the following error on the SandBox Pi AE.
    u201CSOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 302 MOVED TEMPORARILYu201D
    Please can you assist in this matter.
    Regards
    Willie Hugo

    Hi williem,
    Stefans weblog works great. The error you are getting is some wrong data you are sending. Please verify the data you are sending is correct. Also check this threads for the same errror:
    ADAPTER.HTTP_EXCEPTION / HTTP 302 Moved Temporarily
    Re: SOAP client receives HTTP 302 Found
    Re: Synchronous RFC-XI-Web Service with no request method
    HTTP Error (302) Found when calling Web Service on XI
    Regards,
    ---Satish

  • How to use the character encoding model to use ' �'  in java

    hi
    I have to use the special characters like '�' using java.but when '�' character is transferred to data base or is displayed in my form,it is shown as '?'.but i need to display the original characters in the form of what it is.
    what can i do as i expects the result .i needs it very urgently.so reply to me as soon as possible.
    advance thank you
    rgds
    Oasisdeserts

    Java stores all characters as 16 bit UNICODE (which has plenty of room far more exotic characters than Greek). Every time character data is brought into, or stored from the Java environment it passes through a specific character encoding. If you don't state the encoding explicitly it uses the default encoding of the machine it's running on (which is typically oriented to the language set in the locale.).
    With a database the database driver is supposed to do any necessary translation. The non-latin character could be stored wrongly, the database could be returning it wrongly or whatever's creating your form could be interpretting it wrongly, or lack the capacity to display the character.
    If it's, say, a JSP try setting the page encoding to UTF-8. Try dumping the characters read from the database in HEX and look them up at www.unicode.org.
    Take a look at the database setup information, some have an option of storing characters as UNICODE or ASCII.
    The "?" is substituted whenever a codec can't make sense of the codes it's translating, either the byte array is invalid or the UNICODE character can't be represented.

  • Authorization Scheme using the APEX Authentication Scheme

    How would you build an authentication scheme that is using the APEX Authorization scheme. All users are belonging to a group which could be Oracle, External or Developer and I'd like to hide certain pages from the External users.
    I am not sure if I can grab the group name from some V('..') function and make something work?
    Cheers,
    Andy

    I'll give it a try again, sorry for not being able to describe the problem better!
    I am using the APEX built in authorization and authentication to make my life simple with regards to user mgmt. So all the users are managed using the Home>Administration>Manage Application Express Users. Every user belongs to an APEX group (Home>Administration>Manage Application Express Users>User Groups). For example:
    User A belongs to Group External
    User B belongs to Group Oracle
    User C belongs to Group Admin
    Now, there are certaing pages in my application that I want to restrict from the Group External (but the Group Admin and Group Oracle can see them).
    So my question is really how would I build such an Authorization Scheme to accomplish this? Not suer about which APEX API functions I should use to get this data and how to build the function.
    I hope this makes more sense?
    Andy

  • How can we take the incremental export using the datapump at schema level.

    Hi,
    How can we take the incremental export using the datapump at schema level. Example, today i had taken the full export of one schema.
    After 7 days from now , how can i take the export of change data , from the data of my full export.
    using the export datapump parameter - FLASHBACK_TIME ,can we mention the date range. Example sysdate - (sysdate -7)
    Please advice
    thanks
    Naveen.

    Think of the Data Pump Export/Import tools as taking a "picture" or "snapshot."
    When you use these utilities it exports the data as it appears (by default) while it's doing the export operation. There is no way to export a delta in comparison to a previous export.
    The FLASHBACK_TIME parameter allows you to get a consistent export as of a particular point in time.
    I recommend you go to http://tahiti.oracle.com. Click on your version and go to the Utilities Guide. This is where all the information on Data Pump is located and should answer a lot of your questions.

  • Is it possible to use Apple Configurator to do a remote wipe of an iPad? Or must I use the profile manager tool within OS X Server?

    Is it possible to use Apple Configurator to do a remote wipe of an iPad? Or must I use the profile manager tool within OS X Server?

    no apple configurator connects via usb
    you'll need a MDM solution such as OSX server profile manager for remote wipe
    OTA pushing profies remote wipe etc
    you could use icloud for remote wipe

  • Error on Using the SOAP Demo

    I keep running into the same error when trying to use the demo for web service development... im new to SOAP so if anyone could shed some light on it, id be wonderful... thanks in advance!
    SQL> CREATE OR REPLACE PACKAGE demo_soap AS
    2
    3 /* A type to represent a SOAP RPC request */
    4 TYPE request IS RECORD (
    5 method VARCHAR2(256),
    6 namespace VARCHAR2(256),
    7 body VARCHAR2(32767));
    8
    9 /* A type to represent a SOAP RPC response */
    10 TYPE response IS RECORD (
    11 doc xmltype);
    12
    13 /*
    14 * Create a new SOAP RPC request.
    15 */
    16 FUNCTION new_request(method IN VARCHAR2,
    17 namespace IN VARCHAR2)
    18 RETURN request;
    19
    20 /*
    21 * Add a simple parameter to the SOAP RPC request.
    22 */
    23 PROCEDURE add_parameter(req IN OUT NOCOPY request,
    24 name IN VARCHAR2,
    25 type IN VARCHAR2,
    26 value IN VARCHAR2);
    27
    28 /*
    29 * Make the SOAP RPC call.
    30 */
    31 FUNCTION invoke(req IN OUT NOCOPY request,
    32 url IN VARCHAR2,
    33 action IN VARCHAR2) RETURN response;
    34
    35 /*
    36 * Retrieve the sipmle return value of the SOAP RPC call.
    37 */
    38 FUNCTION get_return_value(resp IN OUT NOCOPY response,
    39 name IN VARCHAR2,
    40 namespace IN VARCHAR2) RETURN VARCHAR2;
    41
    42 END;
    43 /
    Package created.
    SQL> ed
    Wrote file afiedt.buf
    1 CREATE OR REPLACE PACKAGE BODY demo_soap AS
    2 FUNCTION new_request(method IN VARCHAR2,
    3 namespace IN VARCHAR2)
    4 RETURN request AS
    5 req request;
    6 BEGIN
    7 req.method := method;
    8 req.namespace := namespace;
    9 RETURN req;
    10 END;
    11 PROCEDURE add_parameter(req IN OUT NOCOPY request,
    12 name IN VARCHAR2,
    13 type IN VARCHAR2,
    14 value IN VARCHAR2) AS
    15 BEGIN
    16 req.body := req.body ||
    17 '<'||name||' xsi:type="'||type||'">'||value||'</'||name||'>';
    18 END;
    19 PROCEDURE generate_envelope(req IN OUT NOCOPY request,
    20 env IN OUT NOCOPY VARCHAR2) AS
    21 BEGIN
    22 env := '<SOAP-ENV:Envelope
    23 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    24 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    25 xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    26 <SOAP-ENV:Body><'||req.method||' '||req.namespace||'
    27 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'||
    28 req.body||'</'||req.method||'></SOAP-ENV:Body></SOAP-ENV:Envelope>';
    29 END;
    30 PROCEDURE show_envelope(env IN VARCHAR2) AS
    31 i pls_integer;
    32 len pls_integer;
    33 BEGIN
    34 i := 1; len := length(env);
    35 WHILE (i <= len) LOOP
    36 dbms_output.put_line(substr(env, i, 60));
    37 i := i + 60;
    38 END LOOP;
    39 END;
    40 PROCEDURE check_fault(resp IN OUT NOCOPY response) AS
    41 fault_node xmltype;
    42 fault_code VARCHAR2(256);
    43 fault_string VARCHAR2(32767);
    44 BEGIN
    45 fault_node := resp.doc.extract('/soap:Fault',
    46 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/');
    47 IF (fault_node IS NOT NULL) THEN
    48 fault_code := fault_node.extract('/soap:Fault/faultcode/child::text()',
    49 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    50 fault_string := fault_node.extract('/soap:Fault/faultstring/child::text()',
    51 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    52 raise_application_error(-20000, fault_code || ' - ' || fault_string);
    53 END IF;
    54 END;
    55 FUNCTION invoke(req IN OUT NOCOPY request,
    56 url IN VARCHAR2,
    57 action IN VARCHAR2) RETURN response AS
    58 env VARCHAR2(32767);
    59 http_req utl_http.req;
    60 http_resp utl_http.resp;
    61 resp response;
    62 BEGIN
    63 generate_envelope(req, env);
    64 -- show_envelope(env);
    65 http_req := utl_http.begin_request(url, 'POST','HTTP/1.0');
    66 utl_http.set_header(http_req, 'Content-Type', 'text/xml');
    67 utl_http.set_header(http_req, 'Content-Length', length(env));
    68 utl_http.set_header(http_req, 'SOAPAction', action);
    69 utl_http.write_text(http_req, env);
    70 http_resp := utl_http.get_response(http_req);
    71 utl_http.read_text(http_resp, env);
    72 utl_http.end_response(http_resp);
    73 resp.doc := xmltype.createxml(env);
    74 resp.doc := resp.doc.extract('/soap:Envelope/soap:Body/child::node()',
    75 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
    76 -- show_envelope(resp.doc.getstringval());
    77 check_fault(resp);
    78 RETURN resp;
    79 END;
    80 FUNCTION get_return_value(resp IN OUT NOCOPY response,
    81 name IN VARCHAR2,
    82 namespace IN VARCHAR2) RETURN VARCHAR2 AS
    83 BEGIN
    84 RETURN resp.doc.extract('//'||name||'/child::text()',
    85 namespace).getstringval();
    86 END;
    87* END;
    88 /
    Package body created.
    SQL> CREATE OR REPLACE PACKAGE time_service AS
    2 FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2;
    3 END;
    4 /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY time_service AS
    2
    3 -- Location of Web service definition
    4 -- http://www.alethea.net/webservices/LocalTime.asmx?WSDL
    5
    6 FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2 IS
    7 req demo_soap.request;
    8 resp demo_soap.response;
    9 BEGIN
    10 req := demo_soap.new_request('LocalTimeByZipCode',
    11 'xmlns="http://www.alethea.net/webservices/"');
    12 demo_soap.add_parameter(req, 'ZipCode', 'xsd:string', zipcode);
    13 resp := demo_soap.invoke(req,
    14 'http://www.alethea.net/webservices/LocalTime.asmx',
    15 'http://www.alethea.net/webservices/LocalTimeByZipCode');
    16 RETURN demo_soap.get_return_value(resp, 'LocalTimeByZipCodeResult',
    17 'xmlns="http://www.alethea.net/webservices/"');
    18 END;
    19
    20 BEGIN
    21 /*
    22 * Since the Web service resides outside of the firewall, we need to set
    23 * the proxy in the current session before invoking the service.
    24 */
    25 utl_http.set_proxy('www-proxy', NULL);
    26 utl_http.set_persistent_conn_support(TRUE);
    27 END;
    28 /
    Package body created.
    SQL> exec dbms_output.put_line(time_service.get_local_time('94065'));
    BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "LOANADMIN.DEMO_SOAP", line 65
    ORA-06512: at "LOANADMIN.TIME_SERVICE", line 13
    ORA-06512: at line 1

    I deleted the two lines of coding below:
    utl_http.set_proxy('www-proxy', NULL);
    utl_http.set_persistent_conn_support(TRUE);
    and then I set the utl_http.set_persistent_conn_support() to False to get that error message. Seems like the website in question doesnt have the webservice anymore because the error has to do with the parsing of the WSDL file.... which probrably doesnt exist.
    Im just trying to get a working example of using a third party webservice to return a value to be displayed in the database.... know of any good examples? The ones im using seem to be pretty out dated... the barnes and nobles example just times out....

  • Sample application using the Eclipse BIRT schema

    <p>Somaco have produced a sample application based upon the Eclipse BIRT example schema (customers, orders, products, etc). Hopefully this will be of some use to new-to-Spring developers looking for other example applications and sample applications.</p>
    <p>So far we're tested/run the sample application on Tomcat, using JOTM transactions against the MySQL version of the BIRT schema. We'd like to (a) offer the sample application to those Weblogic users looking for sample applications (other than petstore), and (b) get some feedback on the sample application from Weblogic users - both for the deployment and for the app itself.</p>
    <p>
    The sample application uses the following Spring MVC Framework features:</p>
    <ul>
    <li>Various Spring controllers including: SimpleFormController, AbstractWizardFormController, and MultiActionController.</li>
    <li>Validation and Custom Editors (including a CustomTimestampEditor for java.sql.Timestamp fields).</li>
    <li>Clearly tiered application design with web, application and persistence tiers.</li>
    <li>Ibatis/DB persistence tier using result maps, correlated result maps, dynamic and iterative map definitions.</li>
    <li>Simple QBE on text fields.</li>
    <li>Externalised messages (for i18n/l10n).</li>
    <li>WAI-friendly page structure (e.g. CSS2 styling, use of divs, not tables).</li>
    <li>Declarative JOTM transactions.</li>
    </ul>
    <p>The sample application was created using the Somaco Software Production service.</p>
    <p>Follow the link from the Somaco home page to download the application (~4.1 MB).</p>
    <p>No registration required. Feedback would be appreciated. Enjoy.</p>
    <p>Cheers - John</p>

    <p>Somaco have produced a sample application based upon the Eclipse BIRT example schema (customers, orders, products, etc). Hopefully this will be of some use to new-to-Spring developers looking for other example applications and sample applications.</p>
    <p>So far we're tested/run the sample application on Tomcat, using JOTM transactions against the MySQL version of the BIRT schema. We'd like to (a) offer the sample application to those Weblogic users looking for sample applications (other than petstore), and (b) get some feedback on the sample application from Weblogic users - both for the deployment and for the app itself.</p>
    <p>
    The sample application uses the following Spring MVC Framework features:</p>
    <ul>
    <li>Various Spring controllers including: SimpleFormController, AbstractWizardFormController, and MultiActionController.</li>
    <li>Validation and Custom Editors (including a CustomTimestampEditor for java.sql.Timestamp fields).</li>
    <li>Clearly tiered application design with web, application and persistence tiers.</li>
    <li>Ibatis/DB persistence tier using result maps, correlated result maps, dynamic and iterative map definitions.</li>
    <li>Simple QBE on text fields.</li>
    <li>Externalised messages (for i18n/l10n).</li>
    <li>WAI-friendly page structure (e.g. CSS2 styling, use of divs, not tables).</li>
    <li>Declarative JOTM transactions.</li>
    </ul>
    <p>The sample application was created using the Somaco Software Production service.</p>
    <p>Follow the link from the Somaco home page to download the application (~4.1 MB).</p>
    <p>No registration required. Feedback would be appreciated. Enjoy.</p>
    <p>Cheers - John</p>

  • Playback issues from files compressed using the Divx Encoder

    Hey there,
    As the title implies, Im trying to edit Hypercam screen capture footage that was compressed with the Divx encoder it comes with.
    The footage then gets exported to an .avi format, and in windows it plays fine, HOWEVER, when I import the footage into premiere, all manner of horrible things happen, I have imported different footage encoded to the same format with no issues however. Has anyone else had an issue similar to this?
    the Rig:
    2.4 quad core
    3 gbyte of ram
    nvidia 8800 gts driver vers 182.xx
    Thanks

    If it is possible to NOT use the DivX CODEC, jump at that opportunity. It is a delivery format, pure and simple, and is not meant to edit, and does not edit well.
    Eddie's links will cover converting, but quality will be very poor.
    When faced with this CODEC, I use DigitalMedia Converter (~US$50), and it handles it fine. It just does not improve the quality, one iota. If there is no way around DivX (or Xvid), I can recommend the above. One must have the DivX CODEC (free) installed, but it sounds like you do. BTW, per Eddie's link, you WILL want to convert to DV-AVI Type II with PCM/WAV 48KHz 16-bit Audio. Again, you will need the MS DV CODEC installed, but most systems have this already.
    Good luck,
    Hunt

  • How can I use the up & down arrows within a split screen email?

    When I'm reading a split screen email (in Yahoo), I have to use the scroll bar to go up and down WITHIN the email. I would like to set it up so that I can use the arrow keys to scroll up and down the email content. Thanks.

    Click once in the split-side where you want to use the scroll arrows, to make the "focus" there.

  • How to use the external encoder

    Can someone please tell me how to open the external encoder so i can copy and paste links into it to use my web cam?
    Thanks

    Find a forum for whatever product this involves and post your question there.
    Here is a link to a page that has links to all Adobe forums...
    Forum links page:
    https://forums.adobe.com/welcome

  • How do i set up to use the spacebar to navigate within an image while using another tool

    when using a tool (such as eraser, clone etc.) i used to be able to navigate within an image by using the spacebar. for some reason, this option is not working any longer and i'd like to know how to set it up again.

    You don't need the background image -- you supply THAT in FCPX. Just work the text effect and publish it.

  • Does iDVD and DVD Studio Pro use the same encoder?

    I have a video I shot in 1080p and it looks great on screen. When I use iDVD to make a quick playable DVD of it (as i have done with many other projects) I'm not happy with the results. It is only about 8 minutes long so there shouldn't be issues with extra compression to get it to fit on the disc.
    So I'm thinking of redoing it in DVD Studio Pro, but won't bother if they both use the same MPEG-2 encoding methods. Any thoughts?
    Thanks in advance,
    Mark

    Videodude, Compressor isn't necessary since iDVD will do the compression for you. But I wasn't happy with the standard def quality I was getting so Mish recommended using manual settings in Compressor and exporting the MPEG2 files needed to burn to DVD. Since Compressor created the files I used DVD Studio Pro to master my DVD.
    You should be able to burn a HD disc through iDVD if you have a BlueRay burner. But keep in mind that not everyone has BlueRay and the discs aren't cheap. Be a shame if you handed out discs that no one could use.
    As a side note, I used Mish's advice and am really happy with the quality of video I'm getting now. I can only guess that iDVD over compressed the video so it could squeeze two hours on a DVD, even though my video was only 10 min.
    Mark

  • Is there a way I can use the iPhoto maps function within Keynote?

    Hi,
    I recently brought a Macbook Pro, and am having my first go at using Keynote. Having previously played with iPhoto, there is the map function built in, and I was wondering whether there is a way to use this in Keynote?
    I was hoping to avoid using a screenshot of google maps as its not interactive, and plus quite bland too.
    Any way this can be done?
    Thanks,

    Keynote can not interact with other applications other than launch a web browser, it cant display web content within a Keynote presentation.
    The only way Keynote can be used to display a "live" web content is to launch a browser at a specific webpage, Google Maps for example,
    To try this place a shape on the slide, select it then:
    Inspector > Hyperlink > Enable as Hyperlink > link to webpage;  type in the web address in the URL box

Maybe you are looking for