Widget to the Web service, parsing XML

I worked on the communication with my web services and back to my widget.

By using the code below, I was able to perform a GET and repay the XML, but I can't find data where I expect it to be node-wise when parsing XML. I return an object with 3 variables attached to it. I expect to be child nodes 1, 2, and 3. They proved to be 1, 3 and 5 nodes.

Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

XML response


- http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
  1000
  Test Station
  105.285
  

The widget code

//****************** Ajax Logic ******************
var xmlHttp;
function getStationUpdate() {

    alert("in station update");
    xmlHttp = new XMLHttpRequest();

    var Posturl = "http://MachineIPGoesHERE:51107/Service1.asmx/HelloWorld2?";
    alert("after post url");
    xmlHttp.onreadystatechange = updateData;
    alert("after onReadyStateChange");
    xmlHttp.open("GET", Posturl, true);
    alert("after GET");

    xmlHttp.send(null);
}

function updateData() {
    if (xmlHttp.readyState == 4) {
        alert(xmlHttp.responseText);
        parser = new DOMParser();
        var xmlDoc = parser.parseFromString(xmlHttp.responseText, "text/xml");

        alert(xmlDoc.documentElement.childNodes[1].tagName + " " + xmlDoc.documentElement.childNodes[1].childNodes[0].nodeValue);
        //alert(xmlDoc.documentElement.childNodes[1].childNodes.length);
        //alert(xmlDoc.documentElement.childNodes[1].hasChildNodes());
        //alert(xmlDoc.documentElement.childNodes[2].hasChildNodes());
        //alert(xmlDoc.documentElement.childNodes[2].tagName + " " + xmlDoc.documentElement.childNodes[2].childNodes[0].nodeValue);
        alert(xmlDoc.documentElement.childNodes[3].tagName + " " + xmlDoc.documentElement.childNodes[3].childNodes[0].nodeValue);
        alert(xmlDoc.documentElement.childNodes[5].tagName + " " + xmlDoc.documentElement.childNodes[5].childNodes[0].nodeValue);

        alert(xmlDoc.documentElement.childNodes.length);
    }

Web service

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Xml.Serialization;

namespace WebService1
{
    /// 
    /// Summary description for Service1
    /// 
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
     [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }

        [WebMethod]
        public myTestObj HelloWorld2()
        {
            myTestObj test = new myTestObj();
            return test;
        }
    }

    [Serializable]
    public class myTestObj
    {
        private int _StationID;
        private string _StationName;
        private double _Volume;

        [XmlElementAttribute(Order = 0)]
        public int StationID
        {
            get
            {
                return this._StationID;
            }
            set
            {
                this._StationID = value;
            }
        }

        [XmlElementAttribute(Order = 1)]
        public string StationName
        {
            get
            {
                return this._StationName;
            }
            set
            {
                this._StationName = value;
            }
        }

        [XmlElementAttribute(Order = 2)]
        public double Volume
        {
            get
            {
                return this._Volume;
            }
            set
            {
                this._Volume = value;
            }
        }

        public myTestObj()
        {
            StationID = 1000;
            StationName = "Test Station";
            Volume = 105.285;
        }
    }
}

> Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

White space nodes?

Tags: BlackBerry Developers

Similar Questions

  • Problems with the Web Service using XML in Flex

    Hello

    I use a ColdFusion CFC, which is configured to generate an XML string. It runs on ColdFusion MX 6.1 and is configured as a remote web service. I tested the call and it returns the string XML fine when it is called from another method of Flex unfounded. My problem is this simple Flex application to call the same function via a service web, I wrote below. I cannot get to the exit results, keeps showing as NULL. I can't use the HTTP of Flex appeal for remote access because I'm not under MX7. Does anyone know what is wrong with my code? BTW, I would do the work of cross - domain.xml file to call the cfc, let me know if you want to test and I can add your domain name. Thank you!

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    <! - set Web Service to get the XML data of course catalog - >
    < mx:WebService
    ID = "cd".
    "WSDL =" http://training.wonderware.com/components/courses.cfc?wsdl "
    Load = "CD.getCourseCatalogXML.Send ()" "
    showBusyCursor = "true" fault = "Alert.show (event.fault.message), 'Error' ' result =" cdResult (event) ">"
    < mx:operation name = "getCourseCatalogXML" resultFormat = "e4x" >
    < mx:request >
    < IDCalendrier > 3 < / IDCalendrier >
    < / mx:request >
    < / mx:operation >
    < / mx:WebService >

    < mx:Script >
    <! [CDATA]
    Import mx.controls.Alert;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;

    [Bindable]
    public var outputString:String

    public void cdResult(event:ResultEvent):void
    {
    outputString = event.result as String
    }
    []] >
    < / mx:Script >

    < mx:Canvas horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >
    < mx:Text width = '100% ' paddingLeft = "4" paddingRight = paddingTop "4" = "4" >
    < mx:text > OUTPUT: {outputString} < / mx:text >
    < / mx:Text >
    < / mx:Canvas >

    < / mx:Application >

    Thank you very much! I do not have the notion that the HTTPService is indded just an HTTP call. So yes that it a much simpler way to call just ColdFusion to return the XML string to the application. No reason to use Flash Remoting or CFCS etc... and certainly not a web server. This made the turn that I called a HTTPService now what charges by coldfusion page that returns XML and bam, works well with e4x result etc... Thanks tracy!

  • Bind the drop down list to XML response from the web service

    In Designer ES2, I'm trying to populate a drop-down list with the data returned by a web service, but can't seem to get the link right.

    I created a web service using Workbench, which returns the following XML data (shown here in a text field for test purposes):

    image1.PNG

    However, when I bind this to the DataDropdownList control, LiveCycle seems to be putting the entire XML document in the drop-down list.

    Liaison:

    image2.PNG

    (Full text of the link is connectionData.groupLeaderWebService.Body.invokeResponse.xmlData.document.)

    Result:

    image3.PNG

    Therefore, a connection is made and the web service returns data, but it is not bound correctly as items in the list.

    I need the drop-down list to display the individual names returned by the web service.  Finally, it probably will be expanded to include the name and identification number (text and value, respectively).

    Can you see where I am going wrong with this?  Any help would be appreciated.

    Thank you!

    Toby

    Oops. Good fishing. This should be pls.loadXML (form1.page1.footer.lots.rawValue, 0, 1);

  • How to consume the web service using PLSQL in 11g

    Hello

    I created a site using jDeveloper, web services which when I put in the web browser and press enter, it will display the settings screen and when I pass the value for the parameter, and then it displays the output of the XML returned by the PL/SQL (called in the Web Service) package. Now, I want to call this webservice in PL/SQL and read XML data and fill in the staging table. Can anyone suggest me how to achieve this functionality by using Oracle PL/SQL

    I use the database 11g and jDeveloper Version :-Studio Edition version 10.1.3.0

    Thank you very much in advance.

    Vijay

    The WSDL file describes the web service.

    To obtain the WSDL, you enter the URL of the web service and add some ? WSDL to the URL. This indicates the web service to return to its definition.

    For example

    URL of the Web Service: http://wsf.cdyne.com/WeatherWS/Weather.asmx

    WSDL URL: http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    When you read (using 'web browser' UTL_HTTPpackage) the XML response from the web service, read as strings (PL/SQL varchar2, size 32 K max).

    You should read the answer as the strings, then writing/writeappend these channels in a CLOB (using the DBMS_LOB package). If you are VERY sure that the web service call ALWAYS returns an XML of less than 32 k, you can skip using a CLOB.

    Whatever it is, read you the response from the web service in the form of text (such as plain text, it is what is sent). The next step on your part is to parse text into an XML DOM (document object model) - and storing the DOM in an Oracle XmlType variable.

    When in a DOM, you can use Oracle XML functions to extract the attributes and values of the key element of the response from the web service.

  • Problem with the web service call

    I use ajax with json to call webservice but its not working with the localhost url in the emulator of the ripple. If I use an ip address or external url does not call the webservice.

    I also tried with BlackBerry, webservice does not.

    can someone guide me how to call the Web service?

    Thank you

    Sundaram

    Your file config.xml needs the ip address or the url in the "whitelist".  Use the access for that tag.  for example:

    
    

    The piece above is not secure because it whitelists ALL------* areas.  You can put your url in the uri.

  • How to add THE web service to the ACL?

    I want to access a web service from a PL/SQL procedure (using UTL_HTTP) since a 11g R2 database. However, before you do anything, I need to give access to the web service by adding the web service to the access control list (ACL).

    I want to test the web service is full here: http://www.service-repository.com/service/overview/-1789095104

    This is a free WS, you can use to test the code WS.  The endpoint is http://www.w3schools.com/webservices/tempconvert.asmx

    Therefore, adding www.w3schools.com to list ACL will be fine, I think? Am I wrong?

    I tried the method below but I get this error and the user guide is not clear what to do.

    SQL > exec dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com');

    BEGIN dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com'); END;

    *

    ERROR on line 1:

    ORA-31001: handle or path of the invalid resource name ' / sys/acls/temp_ws1.xml '.

    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 86

    ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 94

    ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 479

    ORA-06512: at line 1

    Any help would be greatly appreciated.

    This,

    host-online "www.w3shools.com."

    is not the same thing as this,

    host-online "www.w3schools.com".

  • Access to the Web Service API

    Hello

    I try to access a web page API in the APEX, but still get an error in the ACL.  I tried everything I can think of as well as the multitude of usual information "bits and pieces", which I found on the web.

    USER who needs access to the ACL and the fact that it is an https site makes a difference for settings?

    I can return data from SqlPlus without problem.

    FOR INFO.

    Oracle 11g

    APEX 5

    W2008.

    Pointers would be appreciated!

    Thank you

    Hi Samuistu,

    Samuistu wrote:

    Basically, what I want to do is to download data in a table to a Web site.  A good example of the type of data is here https://www.cryptopia.co.nz/api/GetCurrencies

    Is it possible to get this data into a table that contains the Id column headers, name, etc. of symbol.

    Assuming that you have a table as follows:

    create table crypt_currencies (
      id number,
      name varchar2(128),
      symbol varchar2(8),
      algorithm varchar2(128)
    );
    

    Finally with regard to the features to get the web service data and insert them in the table, for that you can do something like this:

    declare 
    
        l_response clob;
        l_values apex_json.t_values;
        l_data_count integer;
        l_crypt_curr_rec crypt_currencies%rowtype;
    
    begin 
    
        l_response := apex_web_service.make_rest_request (
                            p_url          => 'https://www.cryptopia.co.nz/api/GetCurrencies',
                            p_http_method  => 'GET',
                            p_wallet_path  => 'file:path/to/oracle/wallet',
                            p_wallet_pwd  => 'password' );
    
        apex_json.parse (
            p_values => l_values,
            p_source => l_response );
    
        if apex_json.get_boolean (
              p_values => l_values,
              p_path  => 'Success' ) then
            dbms_output.put_line('Success --> true');
        end if;
    
        dbms_output.put_line ( 'Data Members Count --> '||
                                apex_json.get_count (
                                    p_values => l_values,
                                    p_path  => 'Data' )
                              );
    
        l_data_count := apex_json.get_count (
                            p_values => l_values,
                            p_path  => 'Data' );
    
        for i in 1 .. l_data_count loop
    
            l_crypt_curr_rec := null;
    
            dbms_output.put_line ( 'Id --> '||
                                apex_json.get_number (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Id',
                                    p0      => i )
                                ||', '||
                                'Name --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Name',
                                    p0      => i )
                                ||', '||
                                'Symbol --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Symbol',
                                    p0      => i )
                                ||', '||
                                'Algorithm --> '||
                                apex_json.get_varchar2 (
                                    p_values => l_values,
                                    p_path  => 'Data[%d].Algorithm',
                                    p0      => i )
                              );
    
            l_crypt_curr_rec.id := apex_json.get_number (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Id',
                                      p0      => i );
    
            l_crypt_curr_rec.name := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Name',
                                      p0      => i );
    
            l_crypt_curr_rec.symbol := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Symbol',
                                      p0      => i );
    
            l_crypt_curr_rec.algorithm := apex_json.get_varchar2 (
                                      p_values => l_values,
                                      p_path  => 'Data[%d].Algorithm',
                                      p0      => i );
    
            insert into crypt_currencies
                values l_crypt_curr_rec;
    
        end loop;
    
    end;
    

    NOTE:

    • The code above is for purposes of example, if you use it make the necessary changes.
    • Dbms_output calls are given for the purpose of debugging. You can remove that in the actual code.

    I hope this helps!

    Kind regards

    Kiran

  • Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8

    ColdFusion 7 and 8 are provided with a variant of JRE1.6.

    I have a script that has consumed a web service for years with success.  Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).

    I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:

    -----------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException

    faultSubcode:

    faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH

    faultActor:

    faultNode:

    faultDetail:

    {}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH

    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)

    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)

    to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''

    -----------------

    I asked the service provider web, why it would stop working and how we can solve this problem.  They suggested that upgrade to the latest version of Java on my server running ColdFusion.  I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.

    The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.

    Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?

    Hi, frank000000,

    I know that we had a serious problem with any Java 7 after update 25.  They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25.  But it's while we were in CF Server 9.

    Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.

    It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems.  It could very well be something else.  I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.

    HTH,

    ^_^

  • How to access the web service from Oracle?

    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0

    I'm making a call to a web service through a procedure/function...

    I tried to use
    CREATE OR REPLACE PROCEDURE Call_Rest_Webservice
    
     AS
    
      t_Http_Req Utl_Http.Req;
    
      t_Http_Resp Utl_Http.Resp;
    
      t_Request_Body VARCHAR2(30000);
    
      t_Respond VARCHAR2(30000);
    
      t_Start_Pos INTEGER := 1;
    
      t_Output VARCHAR2(2000);
    
    BEGIN
    
      /*Construct the information you want to send to the webservice.
      
      Normally this would be in a xml structure. But for a REST-
      
      webservice this is not mandatory. The webservice i needed to
      
      call excepts plain test.*/
    
      t_Request_Body := 'the data you want to send to the webservice';
    
      /*Telling Oracle where the webservice can be found, what kind of request is made
      
      and the version of the HTTP*/
    
      t_Http_Req := Utl_Http.Begin_Request('**webservice address**',
                                           'GET',
                                           'HTTP/1.1');
    
      /*In my case the webservice used authentication with a username an password
      
      that was provided to me. You can skip this line if it's a public webservice.*/
    
      --Utl_Http.Set_Authentication(t_Http_Req, 'username', 'password');
    
      /*Describe in the request-header what kind of data is send*/
    
      Utl_Http.Set_Header(t_Http_Req, 'Content-Type', 'text/xml charset=UTF-8');
    
      /*Describe in the request-header the lengt of the data*/
    
      Utl_Http.Set_Header(t_Http_Req, 'Content-Length', Length(t_Request_Body));
    
      /*Put the data in de body of the request*/
    
      Utl_Http.Write_Text(t_Http_Req, t_Request_Body);
    
      /*make the actual request to the webservice en catch the responce in a
      
      variable*/
    
      t_Http_Resp := Utl_Http.Get_Response(t_Http_Req);
    
      /*Read the body of the response, so you can find out if the information was
      
        received ok by the webservice.
      
        Go to the documentation of the webservice for what kind of responce you
      
        should expect. In my case it was:
      
        <responce>
      
          <status>ok</status>
      
        </responce>
      
      */
    
      Utl_Http.Read_Text(t_Http_Resp, t_Respond);
    
      /*Some closing?1 Releasing some memory, i think....*/
    
      Utl_Http.End_Response(t_Http_Resp);
    
    END;
    But it's me ORA-29272: HTTP request failed
    ORA-06512: at "SYS." UTL_HTTP", line 1029
    ORA-12545: Connect failed because target host or object does not exist

    But I can connect to the web server by going on * webservice address * through my browser.

    Is there an ACL must be open in order to have this capacity? I asked my s/n, but she asked me that I will need to give its name to username/password / ip in order to open an ACL...
    However there is no name to username/password required during a tour of the web service...

    Any help would be much appreciated...

    Thank you

    Published by: 986006 on March 4, 2013 08:38

    Y.L wrote:

    This is because the database could not connect to the specified server. Bad host name or IP address specified. Inability to resolve the hostname to an IP address. Firewall blocking. Etc.

    The host name, I put here can be visit through my browser. I think that it is not question of the host server... So, it could be a firewall on my side of the database which must be opened in order to visit the host?

    The "web browser" (your PL/SQL using UTL_HTTP code) code is running on the Oracle database server. He needs the same type of network access that has your browser on your PC. (firewalls open, authentication of the proxy if necessary, etc.).

    On 11g. Not on 10g.

    I saw the code example you post from the link you provided... those who only works on 11 g?
    If we can work on 10g, which package or what are the steps I need to follow in order to have that works on me?

    The code I posted works on both versions. My comment was regards the ACLs. No ACLs exist on 10g. If you only need to execute privs on the affected packages (e.g., UTL_HTTP, etc.).

    ACL were introduced with 11g - 11g, you also need the ADMINISTRATOR to create an ACL for you which will allow access to the UTL_HTTP network so now.

  • Data custom provider to invoke the Web Service

    Hello!

    When an order is created in OSM we invoke a Web service from the drive section rule of data via a data Instance in the component of the system of recognition of orders. In this way, we could produce a plan of orchestration that evaluates the information returned by the Web service.

    So we did research on data providers in the developer's Guide that says "a data custom provider when the provider is a class is part of the Design Studio project developed as part of a solution. It must implement the provider com.mslv class. oms.view.rule.ExternalInstanceAdapter interface.

    in the javadocs that we refer to the Interface ExternalInstanceAdapter, we find the details of the method:
    org. W3C. DOM. Element retrieveInstance(ViewRuleContext context, < java.lang.String, java.lang.Object > java.util.Map parameters)

    The developer's Guide also found that compiled class adapter must be added "the file in archive customization.jar oms.ear application" because it is necessary to decompress the osm.ear

    In this search for information I have do to reach my cartridges PIP research objective more precisely the 'CommunicationsSalesOrderFulfillmentPIP' project and found there a Custom Data provider exactly like 'OsmWebServiceAdapter' required and class of supplier was "com.mslv. oms.view.rule.adapter.OsmWebServiceAdapter "which is not found in the project, so I guess it should already be part of the file oms.ear.

    If anyone could tell me where to find the class that implements the data provider, I would be grateful if you could help me, because I have concerns on how to implement the method that I outlined in the javadocs and make the call to a web service.

    Thanks in advance.

    AndresG.

    Hi Andres;

    In your example, the $reuso contains the response to the web service operation, you call. $reuso will be the element to response document root (for example, the item: soap envelope). Yes, $reuso / soap: Body will be the body, etc. Note that you declare all your namespaces in xquery, you need to reference to navigate in your response to your element of document. Note that the element don't have a namespace, so this will make it a little more difficult navigation - better if possible to ensure that this item also has a name space as well.

    As for the source of your error, I suspect it's because you're trying to put all the contents of the soap envelope: in the ReusoInfraestructura element. Unless ReusoInfraestructura is a type of OSM XML component, OSM validation will fail because it does not meet the requirements of this type (only XML elements may themselves contain elements). Is there more information in the about the error stack trace?

    Brian.

  • How to display a PNG image according to the response from the Web Service?

    Hello

    I use the web service XML from Weather.com to get the current temperature, temperature 'feels' and the current condition icon number.  Their service provides many (> 20 I think) which represents the current status of PNG files.  How do I install my script AS3 do basically if... then Else instructions based on the returned value icon?  For example, if the value of icon = 20, then view 20. png on stage?  I need match the value of correct PNG icon and then put that PNG (as a clip?) on stage for a predefined timeline section.

    Thank you

    SID

    Hello

    I also used this API, and I only use cases or conditions in order to retrieve the values and turn them into a file name.

    If you do not use all the available conditions and turning them into an icon, then Yes, you need to do a switch condition.

    But if you want to use them all, them you can simply get the condition number and add the '.png' and call the corresponding file directly. Here you can do a test, just in case the condition / icon does not exist (e.g. system failure any)

    uicondition.source = String (resultXML.cc.icon) + ".png";

    The UILoader is an excellent component for this sort of thing. You can accomplish the same thing with a MovieClip and load an image. It is lighter.

    But then again if you want to resize you would code all methods for that.

    I hope this helps.

  • Matter of business for OSB 10.3.1 when to call the web service from SAP ECC 710

    Hello

    1. I was a unit test for a business service that calls a web service from SAP ECC 710 (this service is published directly to a RFC function via SOA Manager module);

    2. the problem is when I use the OSB test console, which generates the request below message:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    the response message is:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header >
    < n0:MessageID = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:n0 >
    UUID:4cbe5b84 - 474 c-9abe-e100-00000ad00164
    < / n0:MessageID >
    < n1:Action SOAP - env:mustUnderstand = "1" xmlns:n1 = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope" / >
    < / soap - env:Header >
    < SOAP - env:Body / >
    < / soap - env:Envelope >


    Above the response indicates that the BS called SAP Web server successfully, but seems that the service did not get the request message.

    3. the Web service can be called successfully through SoapUI. and I checked the soapUI request message; and it can work if I just change the request:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    and I got the right answer:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header / >
    < SOAP - env:Body >
    < n0:Zmmjf503Response xmlns:n0 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    < Recmsg > <! [CDATA [<? xml version = "1.0" encoding = "utf-8"? > < DocumentResponse > < CONDITION > 0 < / STATE > < HTBH > < / HTBH > < MESSAGE > < / MESSAGE > < / DocumentResponse >]] > < / Recmsg >
    < / n0:Zmmjf503Response >
    < / soap - env:Body >
    < / soap - env:Envelope >

    4 it bother me, because the only difference between the above two request messages is the header (one contains a "newline"):
    ------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    -------------------------------------------------------------------------------------------------------------------------------
    VS
    --------------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    ----------------------------------------------------------------------------------------------------------------------------------------

    5 I thought that the SOAP engine should ignore "carriage returns", seems this is a problem of SAP ECC710.

    Do you have someone having this problem? Thank you


    Concerning
    Wen

    Hello Wen,

    I tried to use exactly the same request (carriage return) to call the service through soapUI, and it does not work... just like BS OSB
    should I assume that it is a matter of SAP ECC?

    That same demand also doesn't SOAPUI so certainly it's an issue with SAP ECC. I doubt that SAP ECC is the treatment the carriage return as an end of file marker. Check with support.

    Kind regards
    Anuj

  • The call to the web service help

    Hello

    I use a web service to handle validation. I created the web service and it ran OK, but the report still does not found data. I wanted to see what was in the returned collection, I have therefore created a new region with the following SQL:

    SELECT CLOB001
    OF wwv_flow_collections c
    WHERE c.collection_name = 'P37_VALIDATECCSZ_RESULTS. '

    This has given in: "Marion 0 true true Wayne 14505 1.0 AddressResponse: Marion, NY 14505/Val = true/Rel = 1.0/INCP = true/Geo = 0 NY true."

    The default report is a failure because the response is not XML I think.

    I ran the web service in java and it returns:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    < soapenv:Body >
    < ns:validateCCSZResponse xmlns:ns = "http://validation.util.oss.paetec.com" >
    < ns:return xmlns:ax28 = "http://sag.oss.paetec.com/xsd" xmlns:ax22 = "http://rmi.java/xsd" xmlns:ax23 = "http://io.java/xsd" xmlns:ax21 = "http://client.validation.util.oss.paetec.com/xsd" type = "com.paetec.oss.util.validation.client.AddressResponseArray" >
    < ax21:responses type = "com.paetec.oss.util.validation.client.AddressResponse" >
    < ax21:city > Marion < / ax21:city >
    < ax21:code > 0 < / ax21:code >
    < ax21:country / >
    Wayne < ax21:county > < / ax21:county >
    < ax21: incomplete > true < / ax21: incomplete >
    < ax21: incorporated > true < / ax21: incorporated >
    < ax21:locClli / >
    < ax21:postalCode > 14505 < / ax21:postalCode >
    < ax21:postalCodeExtension / >
    < ax21:reliability > 1.0 < / ax21:reliability >
    < ax21:shortDescription > AddressResponse: Marion, NY 14505/Val = true/Rel = 1.0/INCP = true/Geo = 0 < / ax21:shortDescription >
    < ax21: state > NY < / ax21: state >
    < ax21:streetName / >
    < ax21:streetNumber / >
    < ax21: unit xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: Nil = "true" > < / ax21: unit >
    < ax21: validated > true < / ax21: validated >
    < / ax21:responses >
    < / ns:return >
    < / ns:validateCCSZResponse >
    < / soapenv:Body >
    < / soapenv:Envelope >

    So, anyone know why the call of APEX web service does not return the XML? I get the values from the XML, but I have no way to analyze to get what I need...
    Thank you
    -Johnnie

    Johnnie:

    I slightly changed the basics of Xpath and also changed namespace. Try the following.

    SELECT extractValue( value(T), '//city', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) city
    ,extractValue( value(T), '//county', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) county
    ,extractValue( value(T), '//incomplete', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) incomplete
    ,extractValue( value(T), '//postalCode', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) postalCode
    ,extractValue( value(T), '//reliability', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) reliability
    ,extractValue( value(T), '//state', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) state
    ,extractValue( value(T), '//streetName', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) streetName
    ,extractValue( value(T), '//streetNumber', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) streetNumber
    ,extractValue( value(T), '//validated', 'xmlns="http://client.validation.util.oss.paetec.com/xsd"' ) validated
    FROM TABLE(xmlsequence(extract(XMLTYPE.createxml('
    
    
    
    
    Marion
    0
    
    Wayne
    true
    true
    
    14505
    
    1.0
    AddressResponse: /Marion, NY 14505/Val = true/Rel = 1.0/Incp = true/Geo = 0
    NY
    
    
    
    true
    
    
    
    
    '),'//responses','xmlns="http://client.validation.util.oss.paetec.com/xsd"'))) T
    

    Kind regards

    Jason

  • Fail to create the web service with the type of data defined by the user using the jwsc Ant task!

    Hello everyone!

    I used JAXWS to create WSDL from a file of Jehovah's witnesses.

    It's my TJ:
    -----------------------------------------------------------------------------------
    package ws;

    Import javax.jws.WebService;
    Import javax.jws.WebMethod;
    ws import. MyDataType;

    *@WebService*
    * public class MyWebService {*}
    public MyWebService()
    *{*
    *}*
    *@WebMethod*
    public MyDataType MyWebMethod (MyDataType mdt)
    *{*
    * / / mdt.setS ("I got it!"); *
    return mdt;
    *}*
    *}*
    -----------------------------------------------------------------------------------


    and this is my type of data:
    -----------------------------------------------------------------------------------
    package ws;

    * public class MyDataType {*}


    String ^ s;
    public MyDataType()
    *{*

    *}*
    * public String getS() {*}
    return s;
    *}*

    * Sets public Sub (String s) {*}
    This.s = s;
    *}*
    *}*
    -----------------------------------------------------------------------------------



    and that's my Ant build.xml
    -----------------------------------------------------------------------------------
    * < by default of the project = "all" > *.
    * < property name = "weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/ > * "
    * < taskdef name = "jwsc" classname = "weblogic.wsee.tools.anttasks.JwscTask" > *.
    * < classpath > *.
    * < path id = "weblogic.classpath" > * "
    * < pathelement path = "WEBLOGIC_HOME" / >. *
    * < fileset dir = "${weblogic.jar.classpath}" > *.
    * < include name = "weblogic.jar" / > *.
    * < / fileset > *.
    * < / path > *.
    * < / classpath > *.
    * < / taskdef > *.
    * < target name = "all" depends = "clean, build-service" / > *.
    * < name target 'clean' = > *.
    * < delete dir = "output" / > *.
    * < / target > *.
    * < name target = 'build-service' > *.
    * <!-add jwsc and related tasks here - > *.
    * < jwsc srcdir = "" destdir = "wsoutput" > * "
    * < jws file = "MyWebService.java" type = "JAXWS" / > * "
    * < / jwsc > *.
    * < / target > *.
    * <!-< target name = "deploy" > - > <! - add wldeploy task here - > <!-< / target >-> *.
    * < / project > *.
    -----------------------------------------------------------------------------------

    I have run the Ant task, but I get this error:
    -----------------------------------------------------------------------------------
    BuildFile: build.xml

    clean:

    build service:
    [jwsc] TJ: processing module /MyWebService
    [jwsc] The analysis of source files
    [jwsc] The analysis of source files
    [jwsc] 1 TJS files processing for the module /MyWebService
    * [jwsc] [JAM] WARNING: could not resolve class MyDataType *.
    [jwsc] TJ: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java valid.
    [jwsc] Treatment of the web services JAX - WS 1...
    * [jwsc] error: couldn't get TypeDeclaration for: MyDataType apt tour: 1 *...
    ...................
    BUILD FAILED
    C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
    19: weblogic.wsee.tools.WsBuildException: JAX - WS web services processing error
    -----------------------------------------------------------------------------------

    Please help me solve this problem.
    Thank you
    Mojir

    I tried to compile your source code and received the same exception.
    However after compiling the MyDataType.java before running the jwsc task, I was successfully able to build the service.

    Please try the ant script below and let me know the result:

    **
    *     *
    *
    *



    <>
    srcdir = "${source.dir}" "

    DESTDIR = "${Build.dir} '"
    keepGenerated = 'true '.
    classpath = "${Class.Path} '"
    Debug = 'true '.
    verbose = "false" >

         


              

    Thank you
    Sandeep

  • How can I fnd my claim code and the reprint of the web services information sheet

    Hi, I have a HP Deskjet 3520 and try to put in place the eprint.  I read the suggestions on the forum and the FAQ but I can't locate the web services information sheet I need to reprint for claim code.

    Could not find anything under Printer Control Panel either. Please advise!

    Thank you!!

    Hi Chris88,

    Welcome to the HP Support forums.  I appreciate that you try to configure the ePrint on your Deskjet 3520 printer feature.

    If you have the inkjet printer Deskjet 3520 with a C8994 product number this printer does not have the ePrint service.  The Deskjet 3520 printer only has USB connection and ePrint to function the printer must have an independent internet connection through a wireless or a wired ethernet network.  I've included the specifications of the printer for your reference.

    If you have the e-all-in-one printer Deskjet 3520 then we obtain the claim code.  You can request the information sheet of web services from the front panel of the printer, and there the claim code printed in blue. Instructions on how to get it can be found in the section titled "to print a document using ePrint' in your on page 15 user's guide.  Please follow the instructions in step 1.

    HP Deskjet 3520 inkjet printer specifications

    User's Guide e-All-in-One Series HP Deskjet 3520

Maybe you are looking for

  • U28E590D monitor connect with IMac 5 k (not compatible.?)

    Hey guys It's crazy to my imac 5K can find the monitor and connect too, but the monior is black. and when I connect the monitor with my macbook pro it works very well.

  • 32BV502B does not support MPEG-4 in Greece?

    Hi all, I bought a Toshiba model 32BV502B when I was in London.I red some reviews before buying it and I saw that this model is compatible with MPEG 4. While in London he used to play all local television stations. I send this TV to the Greece and it

  • NB550D - upgraded OS - now used to turn

    Hello Please help-Ive just bought a nb550d and after reading the comments on this forum, I upgraded the operating system of starter for professionals. It went through ok fine and worked after the initial episode. I then turned it then turn it on agai

  • AC adapter / CC does not charge

    My adapter cannot be determined and it does not, It just happened one day to another, it was working fine before, What can I do?

  • I'm unable to print all emails in Windows Live Mail. I have an Epson 635 and a Dell computer.

    I use Windows XP. I use Windows Live Mail, I can print everything I want except mail. I can't print anything in Windows Live Mail. I recently changed printers to Dell for an Epson 635. I was able to print mail on the Dell.The printer is on a network