• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX RPC question doubt

Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


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
Can any one explain?
Thanks in advance.
Peer Reynders
Posts: 2968
  • 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 ]
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!