RE: Get All Message

"Jackson, Douglas" <[email protected]> Fri, 11 Nov 2005 09:55:39 -0600
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <38E6B6EDE4DBBC47A5C6877CC6451179A342AF@usahmplm001.net.plm.eds.com>
Hi!
Isn't there a method getMessages() on the Definition class that will
give
you a Map of all the messages?
-Doug.

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, November 10, 2005 8:46 PM
To: [email protected]
Subject: Get All Message

Hi everyone,

I have tried to get all message from wsdl document. I used the following
java
code:

public void getVariableType() {

   String serviceNS               = null;
   String serviceName 			   = null;

   try {

      Service service = WSIFUtils.selectService( this.wsdlDefinition,
serviceNS,
serviceName );
      Map wsdlMessage = WSIFUtils.getAllItems( this.wsdlDefinition,
"message"
);
		
      for( Iterator iteratorTmp = wsdlMessage.keySet().iterator();
iteratorTmp.hasNext(); ) {
	            
	System.out.println( "ESTADO = " + iteratorTmp.next() );
      }
   }
   catch( WSIFException e ) {
            
   }
}

But I received the exception: ***  Uncaught Exception for agent addd
***
java.lang.IllegalArgumentException: Don't know how to find all messages.

So, how can I get all message from a wsdl file ?

Cheers,
Mauro Monteiro.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.