This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

JAX RPC question doubt

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!