Application of Web service on weblogic 10.3.6 (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

I built a server service web application in 11.1.1.7 Jdeveloper and deploy it on weblogic 10.3.6 to the demands of the external partner is used.

I tested the app using the tool SoapUI and everything works fine and I get as a response from the server.

Use case:

1 - the customer can not get as a response from the server. They always receive 500 internal error from Server

2 - I have faced this problem before with other clients because the client sent not writing xml format that is accepted by the server. Problem is solved at the time when they start to send the right xml format.

3 - newspapers, I see the following stack (part of it): (Google, I knew there's something wrong with xml, the client sends to the server: wso2 - how can I manage this in Wso2ESB that does not Respone to the Client - Stack Overflow)

4. now I need a way to know exactly what is to reach my server as xml. Is it possible to save the queries coming to the server weblogic. xml Without knowing what will happen on the server, I don't know what is going wrong in the xml file.

< error > < com.sun.xml.ws.transport.http.HttpAdapter > < BEA-000000 > < could not create a SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: Illegal treatment target instruction ("xml"); (not case sensitive) xml is reserved by specs.

[row, col {source unknown}]: [10,16]

com.sun.xml.ws.protocol.soap.MessageCreationException: cannot create SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: illegal treatment target instruction ("xml"); XML (not case sensitive) is booked by the specifications.

[row, col {source unknown}]: [10,16]

at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:295)

at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:294)

at com.sun.xml.ws.transport.http.HttpAdapter.access$ 500 (HttpAdapter.java:102)

to com.sun.xml.ws.transport.http.HttpAdapter$ HttpToolkit.handle (HttpAdapter.java:519)

at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)

at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141)

at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:172)

to weblogic.wsee.jaxws.HttpServletAdapter$ AuthorizedInvoke.run (HttpServletAdapter.java:708)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)

to weblogic.wsee.jaxws.HttpServletAdapter$ 3.run(HttpServletAdapter.java:311)

at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)





Update 1: I found that I need to add the following lines of code to enable logging on the server. But I thing execution is not to join them and fail before that. No idea how to highlight the execution of any request. Maybe in jdeveloper and weblogic server?


System.setProperty ("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");

System.setProperty ("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");

System.setProperty ("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");

System.setProperty ("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");

System.setProperty ("javax.net.debug", "true");


Update 2: I just need to set the following properties of java (-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump = true) in the setDomainEnv this file for the side server, see this link: How to apply Log and response with Java JAX - WS Client and web service server? But how to connect their good in files not just their output in the console?

I am in a position to know what is the cause of the error (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

Update 2 in the question, I am able to see which is reached from the server console. The customer was sending additional labels and with in the body tag, which is not recognized by the server of web service application and it throw the customer 500 internal server error. The problem is solved by sending exactly the XML except without additional or missing tags.

Tags: Java

Similar Questions

  • deployment problems web services on weblogic server 10.2

    Hello... I have completed the first web service to web service tutorial and when I want to deploy the .war generated I have this error

    * An error occurred during activation of the changes, please see the log for more details.

    * Cannot load the webapp: "HelloWorldImpl.war."

    * cl/slider/webservices/HelloWorldImpl: classversion unsupported 50.0


    Can U help me please,

    Thanks in advance

    WebLogic 10.2 always uses the JDK 1.5. You have compiled your war with JDK 1.6.

    I would recommend recompile your application with JDK 1.5 or using the indicator 'target' to generate the JDK 1.5 class files.

    -Ryan

  • Tips for creating an application with web services please?

    I created a simple application for a client who interacts / monitors a device VISA with LV 2009.  The architecture is essentially a state machine with a timeout for VISA calls that retrieve the current state.

    The client asked that the app will also be controlled via the web and asked me to set up a demo with one or two simple functions.  I have the experience to bring charges against the Server Web LV7 model, but not with web services.

    So here's what I did...

    (1) added a line to my application that would inject actions in the state machine.

    (2) created a simple VI pushes these actions in the queue and plans to use it as the Web Service.

    And then I followed the examples for Web Services, thinking that the Web server is running in the same program as the development environment, such as the version LV7.  This doesn't seem to work.

    Could someone give me a quick overview on how best to do that, or to report an article?  I have simple working WS, but here are a few questions...

    @ Jed Davidow:

    We met this difficulty with our web app (LV 2009) as well.  Because now we feel the solution the easiest way is to activate the VI server in your main application (EXE) VI and place calls to its hierarchy of web services in the open Application > VI Open > call by Ref > close VI > structure to close the Application.

    Although we try to minimize the use of the present in web services, it makes sense for some resources shared and accessible throughout the world as references to database, configuration globals, etc.

    I also note that there seems to be an instability that we have not been able to identify which may (or not) be attributed to the use of this technique.  The symptom is LabVIEW from memory immediately at some point.

    I am currently looking into migration towards 2010 LV, and it seems that the same constraints between instances of the application are in place.  I expect that, but I was expecting some more simplified with the next version of LV interprocess communication methods.

    --

    James

  • application of Web service instance

    I am building a web services LV2009 (main.exe + web services) application.  The web service VI leaves globals with the main.exe.  I think that web services are run under a separate application instance, so use globals will not work directly.  My idea was to wrap the consolidated appeals on the side of web service inside calls to the VI server to main.exe.

    Here's what I thought:

    So, to make this work correctly, I opened an application reference (default port 3363) and reference of VI (VI is in memory in the main.exe).  I have read the value of the global fight against, close the references and convert the value of the control in the correct data type.

    Everything I read, I should be able to do all of this within the development environment LabVIEW with the service deployed on the local computer. My LV has the web server and the server of VI (port 3363) enabled.

    I have built and deployed the VI service after you turn off the first VI server within the service project (I'm not really sure that it is really important).

    I run my main.exe (.vi) and you try to call the service, but I get error 1004 (reference open VI - VI not in memory).

    I guess my problem seems to be around the "Open Application"... How can I open an application of a web services VI reference?

    TIA,

    James

    Even if it is on the local computer, you must supply the computer name or IP address ('localhost' should work).  Otherwise, you will just a connection to the instance of the local application (see Help), which, of course, does not help you communicate through instances.

  • Sudden issue with eprint &amp; allowing any application or web services

    Hi all

    I have a case with HP and spent 4 + hours on the phone with support eprint people and people of departmental support. Unfortunately, they are now gone for the weekend, and I'm still stuck here with a defective system - and have to leave this weekend on businesses (need a business printer works!)

    I hope someone here can help you.
    I have a x576dw MFP

    Connected to a Netgear router hardwired

    Worked very well with eprint services (set up and printing of daily) for 1 + months

    23:00 last night, I sent several jobs to the printer and I noticed today that they were not there. I checked the print server web printers and find that the IP settings had not changed (of course) when he worked the day before. The same IP address, DNS, default etc. same gateway.

    I ran through all the scenarios/patches that I could find online, to change to the evolution of tests and test with DHCP, changing to wired & test with static and wireless Wi - Fi but a different outside the range of the DHCP IP address, change the router to which the printer is sitting on (I have 3 routers), change the config to link change the primary DNS and secondary only be both addresses from Google (8.8 and 4.4), etc etc.

    ePrint crossed (frustrating) exactly the same steps with me and decided that it was a printer problem. They handed me off the coast for the guys from companies who wanted to do exactly the same steps as for the moment (of course). I did just to get through... (note that I can print correctly on the LAN of all routers), and at the end of technical support told me to try a restore to default settings and start over.

    Do you have this (gr) - same error. When I go to the same activate eprint or apps that it says "Web Services could not be activated". I get the same error on the web interface for the printer.

    Help! IM at a loss total here and HP wants to blame the eprint team, the eprint team wants to blame business solutiosn HP!

    (Other notes... I have checked the firmware, it is updated. I checked also up-to-date web software)

    Frustrated to tired business chick!

    Hey, happy that we were able to work.

    I will contact you on the subject to find the failed unit on your part. We will send to a R & D facility.

  • Application and web Services

    I got 3 subjects with the same question, and looks that person really don't know the answer...


    wscListener.result = {function (evt,:Object)}

    trace (evt. Target.Results [0] Online);
    };


    It's component CFQuery results but I get [Object, object] in outpanel... anyone know how to retrieve query in text?


    Well, it's like nobody can help me? nevremind, I found the treatment... results [0]. TITLE

  • How to get the IP address of the calling client to the web service built in Jdeveloper 11.1.1.7 application?

    I built an application of web service in Jdeveloper 11.1.1.7 to be used by other clients. Just the General steps as follows (Server web service Application is generated--> deployed on the server-> used by clients with the location of the WSDL file).

    Now, I met a requirement where I need to get the port number and IP address for the client.

    Questions :

    How to get the IP address of the calling client to the web service application generated in Jdeveloper?

    Commune technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology use to built web service application?

    The common technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology allows built web service application?

    It depends on the option selected during the creation of web services (if I remember correctly, there are several options, style J2EE 1.4 RPC style JavaEE JAX - WS 1.5,...)

    For example, to get the ip address of the compatible with jax - ws web service, you need to inject the context in your service class with:

    @Resource
    WebServiceContext wsContext;
    

    and then inside your method:

    MessageContext mc = wsContext.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST);
    String ip = req.getRemoteAddr();
    

    Dario

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • simple question of Web service

    I use a Web Service to publish data, and this question is, I am sure, from my limited knowledge and use of the web servers.

    I am able to set up a 'add' method, pass 2 numbers to the web server and the web server to return a value. Simple. But, I don't know what to do when I want to get the current value of something that is being updated in a loop.

    For example, let's say I have a VI as below and that the user wants to display the current iteration of the loop in their browser, not permanently, but only when they ask for it. I won't use this VI as the method to call. Instead, I would rather pass the current value of a designated only VI VI to return the value of the digital control to the Web server. But I have no idea how (or if) I can change the value of iteration to a method to be called. Does make sense?

    I thought by using session variables, but this requires constantly written to the session variable in my code, which is probably not a big deal, but it would be nice if she only questioned the current iteration when the user asked for it (kind of like 2 numbers are added only when requested by the user in the example of OR). I'm looking for a way to simply return the current value, only when requested by the user.

    You can do this, but things get a little complicated.  The web server is its own instance of the application, and I don't think you can (or wants to) have a VI running permanently inside.  When you compile an application with active web services, you get two instances of application - execution of the application, the other inside the web server.  I guess that your loop will run in the instance of the main application.  Put a global functional in it that stores the value all what you want to be questioned on the web and make sure you that VI accessible via the server of VI.  Then, in your web services VI, open a connection to the VI for that functional overall server and run, by reference, to get the value that are stored.

  • deploy the web service to xp embedded

    Hi all

    I struggle to run a web service on an xp embedded system. The web service works very well in my LV 2011 development environment and I have created an installer for my main application it is the lvws file is included as described in web services FAQ:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7747#toc12

    After the installation on the target computer, I can't access the web service. Also if you call localhost:3580, then I get an access error.

    But in the System Control Panel administrative tools, I can see that the server system OR like many Web server OR Web applications are started.

    For further investigation, I added the 'Distributed System Manager' to my Installer. With this tool, I see that all my web services deployed on my development system, but on the XP embedded system with TEN target is listed.

    I installed my application for a professional reference XP system to exclude that the problem is caused by embedded XP. But the behavior is exactly the same. So far, I tested only local so that settings security like firewalls and ports system should pose no problems. But to be sure I have disabled the firewall without success... I can't access the Web service. I have often found the suggestions in the forum to check if the web service is enabled. But I am not already and then access to http://localhost:3580.

    Any ideas?

    Thank you!

    This help document is somewhat outdated.

    You see 2 different problems: 1) you can not display the Configuration utility and do not install Web using localhost:3580 2) your web service monitoring.

    For the first number-->

    You probably did not understand the "Interface Web NI 2011 infrastructure" in your Setup program.  The doc to help you mentioned does not tell you to do, because it is not necessary for your web service works. However, if you want to change one of the settings of your web server after the installation, you will need this extra setup program.

    For the second question-->

    You probably didn't get your Spec to build Web services as a source file in your Setup program.  The help doc says to put your LVWS file as your installation source, but this is not correct. You must include the technical article to build real web service as a source file (not the web service create out of spec files, like LVWS).

    Let me know if any of these will help you.

    -Jared

  • two-way communication with the web service

    I need help with a problem with web services on 8.6.  I do not know if this is possible.

    I have a web service that works very well.  At this point all it defines a Boolean value.

    For the test, I'm just using IE to see the data.  This works.  I can see the Boolean value change each time I send a 0 or 1 value through the URL.

    My problem is this: when I change the Boolean value, I can't read the value of another application of IE.  In other words, I want to be able to open IE twice in two different windows.  When I change a value of an Internet Explorer session, I want to see the value changes in the other session of IE (after refresh).  From now on, it seems that each session of Internet Explorer is a separate instance of the web service.  How can I edit a Boolean value, and read this variation by another IE session?

    My cause is hopeless?  Are web services 'read only '?  Any help would be appreciated.

    Bad form for the double post but the forum wouldn't let me edit my post:

    This VI is a good example of a global LabVIEW 2 style. The registry value at offset uninitialized loop will be persist appealed to the other of this VI. So when the game is true the value of data is stored in the shift register. When all is false the value of the shift register is returned unchanged. Make sure you have 'Keep VI in memory' checked in the configuration of your web service.

    You could do the same thing without parameters selected using two screws separated

  • Catch the event Web Service Session Timeout

    Hi all

    I have a LV Web Service communicate to a web client (Chrome, IE, FF, etc.).  The user connects to the server and create a new session for him to help create Session VI.  One of the entrances to this function is a timeout value (default 60000ms).  The sessions behavior is such that if the user does not activate an application for web service (GET/POST/PUT/etc) within the time limit, then the session is automatically destroyed by the web service.  That's what I want, it's fantastic.

    My question is How can I detect when the session timeout happens? Another way to say, How can I detect when the user session is automatically destroyed?

    What I tried:

    • Of course, I can provide a "logout" link to the user calling ultimately "Destroy Session" VI, but I can't count on the user actually click this link (e.g. you really explicitly sign out of gmail or simply close your web browser?)
    • I thought that the only way to proceed would be to save the cookie of session ID returned by create Session VI and then query this ID to see if the session still exists (check if Session exists VI).  If the session does not exist, well, I know it has expired or the user manually destroyed it.  However, even if I save the cookie ID, I don't see where I can actually use it any where (especially not check if Session is VI). It just seems no value given to the range of sessions.

    Is this possible?

    Thank you

    Rory

    Sorry, Thomas, but that isn't going to work.  Think about it - you do not request a web service during the time-out period. You get ONLY a web service request when the client actually asked something.  The customer does not have during a timeout; It's just times out... so, there is no node on the block diagram to check because there is no block diagram... get it?

    No worries, however, I found the solution [read: workaround], even if the LV can do it (from 2013sp1).

    The best way to detect if a user session times out / out times would be for LV to this exhibit as an event in the web service. The following approach would be for LV accepts a cookie as an entry ID and then provides information on this session (i.e. the session exists).  I have a smell of two feature requests...

    But because BT cannot do these things (or not exposed to the developer), you will need to get creative on the client side.  Since I'm on Javascript/jQuery/AJAX on my front end, then it is possible for me to detect when the customer leaves the page or close the browser.  It comes to $(window) .unload () in jQuery.  Then, I can take this event and an asynchronous AJAX command of fire to one of my web service VI that will eventually call the "destroy Session" VI.

    For more information see the site here:

    http://lavag.org/topic/18490-catch-session-timeout-events-in-LV-Web-service/

    Hope this helps someone.

  • 7520 photosmart all-in-One: sudden problem connecting to web services

    I used my HP Photosmart 7520 years without problem scanning to e-mail. Now I get "Unable to connect to Web Services" error message. I also have a server connection error appear together try to print selections on the screen of the printer - such as the activities of crossword puzzles, sudoku and children.  How can I fix it.

    Hello

    From the Configuration menu, select Web Services Configuration.

    Select Delete Web Services and confirm any command prompt.

    Now re - open the Apps option and follow the steps to reactivate Web Services.

    Once you're done open the scanning to Email application and follow the steps to reactivate Web Services.

    Provide your own e-mail address, and then type the PIN Code received in your email address and try scanning.

    Kind regards

    Shlomi

  • Consume a Web service using javax.microedition.xml.rpc.Operation

    Requirement. Consume a Web Service using native libraries of Blackberry.

    Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

    WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

    Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

    First Guide of: http://blog.bayestech.com/?tag=blackberry

    1 Java Stub

    public interface IWeatherServiceZip
    {
        public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;
    
    }
    

    2. Service Java class

    import java.rmi.RemoteException;
    import javax.microedition.xml.rpc.ComplexType;
    import javax.microedition.xml.rpc.Element;
    import javax.microedition.xml.rpc.Operation;
    import javax.microedition.xml.rpc.Type;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    
    import com.lm.bb.ws.interfaces.IWeatherServiceZip;
    
    /**
     * @author lmo0
     *
     */
    public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
    {
        protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
        protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final Element _type_GetCityWeatherByZIP;
        protected static final Element _type_GetCityWeatherByZIPResponse;
    
        private String[] _propertyNames;
        private Object[] _propertyValues;
    
        public WeatherServiceZip()
        {
            _propertyNames = new String[]
            { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[]
            { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
        }
    
        public void _setProperty(String name, Object value)
        {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    _propertyValues[i] = value;
                    return;
                }
            }
            String[] newPropNames = new String[size + 1];
            System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
            _propertyNames = newPropNames;
            Object[] newPropValues = new Object[size + 1];
            System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
            _propertyValues = newPropValues;
    
            _propertyNames[size] = name;
            _propertyValues[size] = value;
        }
    
        public Object _getProperty(String name)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    return _propertyValues[i];
                }
            }
            if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                    || USERNAME_PROPERTY.equals(name)
                    || PASSWORD_PROPERTY.equals(name))
            {
                return null;
            }
            if (SESSION_MAINTAIN_PROPERTY.equals(name))
            {
                return new Boolean(false);
            }
            throw new JAXRPCException("Stub does not recognize property: " + name);
        }
    
        protected void _prepOperation(Operation op)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                op.setProperty(_propertyNames[i], _propertyValues[i].toString());
            }
        }
    
        public String getWeatherServiceByZip(String zipCode) throws RemoteException
        {
            Object inputObject[] = new Object[]
            { zipCode };
    
            Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
            _prepOperation(op);
            op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
            Object resultObj;
            try
            {
            resultObj = op.invoke(inputObject);
            System.out.print(resultObj.toString());
            } catch (JAXRPCException e)
            {
            e.printStackTrace();
            Throwable cause = e.getLinkedCause();
            if (cause instanceof java.rmi.RemoteException)
            {
            throw (java.rmi.RemoteException) cause;
            }
            throw e;
            }
            return (String) ((Object[]) resultObj)[0];
        }
    
        static
        {
            _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
            _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
            }
    
        private static ComplexType _complexType(Element[] elements)
        {
            ComplexType result = new ComplexType();
            result.elements = elements;
            return result;
        }
    }
    

    3 problem

    There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

    resultObj = op.invoke (inputObject);

    Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

    Thank you

    How do you generate the stub class? Have you used Sun's Wireless Toolkit?

Maybe you are looking for