axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smith, Curtis" <cs0...@att.com>
Subject 1.4: wsdl2java client, doesn't throw exception on bad service url?
Date Tue, 11 Sep 2007 17:49:11 GMT
Greetings,  My need is to drop in a usable SOAP RPC client into a
service that has JAX-WS client calls.  I gave up on SOAP-RPC client side
with the 3rd party vendor's wsdl.   Axis 1.4 parsed and generated client
stubs and classes no problem.

One problem I noticed is that when testing with a service URL to an up
http service but wrong soap service.  The log indicates a bad service
but there's no exception thrown to the bind.serviceCall()?

Any helps or suggestions for smarter approach?   Terse client code
below.

Tnx, curt

 

URL portAddress = new URL(corbaReq.header.url);

 

binding = (com.twowire.services.LSServicesSoapBindingStub)

          new
com.twowire.services.LSServicesServiceLocator().getLSServices(portAddres
s);

try {

              // Set the SOAP call parameters and make the call

              //

              // This service call returns void or exception

                binding.createAccount(new java.lang.String(), 0, new
java.lang.String(), new java.lang.String(), new java.lang.String(), new
java.lang.String(), new java.lang.String(), new java.lang.String(), new
java.lang.String(), new java.lang.String(), new java.lang.String(), new
java.lang.String(), new java.lang.String(), new java.lang.String());

                

                //=== This method does not return a message.  Just
exception if an error.

            }

            catch (com.twowire.services.NotUniqueCPEIdentifierException
e1) {

                // Handle error, set error status in corba response.

              logger.debug("soap error, exc="+e1.dumpToString());

            }

            catch (com.twowire.services.PermissionDeniedException e2) {

              // Handle error, set error status in corba response.

              logger.debug("soap error, exc="+e2.dumpToString());

            }

            catch (com.twowire.services.exception.ServiceException e3) {

                // Handle error, set error status in corba response.

              logger.debug("soap error, exc="+e3.dumpToString());

            }

A bogus portAddress does not throw an exception here.

 

Thanks, curt

 

Curt Smith 
curtis.smith.3@att.com 
404-499-7194

 


*****

The information transmitted is intended only for the person or entity to which it is addressed
and may contain confidential, proprietary, and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If you received this
in error, please contact the sender and delete the material from all computers. GA622



Mime
View raw message