• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAX RPC question doubt

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
A JAX-RPC client is using a stub to connect to s service. The stub implementation supports only the standard properties supported in the JAX-RPC Stub interface. The client must set the endpoint address property on the stub. Given:
Stub._setProperty("HTTPLOCATION", http://localhost:7001/services/mySvc);

What is the result?



Options

Select 1 correct option.

1. The application throws an application-specific exception.

2. The application throws a java.rmi.RemoteException

3. The application throws a javax.xml.rpc.JAXRPCException

4. The value http://localhost:7001/services/mySvc is assigned to the "HTTPLOCATION" property.


Correct answer:The application throws a javax.xml.rpc.JAXRPCException
Source:www.xyzws.com
Can any one explain?
Thanks in advance.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
void javax.xml.rpc.Stub._setProperty(String name, Object value)

So the basis for this question is: What are the supported standard properties of javax.xml.rpc.Stub? Note however that even standard properties can be optional.

We haven't even connected to the web service application so we couldn't be getting a SOAP Fault that is specified in the WSDL and is translated into a Java checked (application) exception.

We haven't even tried to establish a connection yet so it wouldn't be java.rmi.RemoteException.
[ April 11, 2008: Message edited by: Peer Reynders ]
 
There's a way to do it better - find it. -Edison. A better tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic