hi the port can be mentioned by using the WSIFService service= factory.getService(<mention the WSDL path>,null, null,<namespace>,<port>); more over r u done with all the jar files in ur class path mainly commons-discovery.jar - servlet-2_2.jar - axis.jar - saaj.jar - jaxrpc.jar u have to include the above otherwise the port number will not be fetched.. KARAN
-----Original Message----- From: Norberto Carnelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: 2 Questions: selecting PortType and error in WSIFServiceFactory Hi all, i have two problems with WSIF: 1)I've successfully compiled (and used with simple Axis service) the DinamicInvoker sample. Then i tried to use it on this webservice: http://www.xignite.com/xsecurity.asmx?WSDL the dinamicinvoker says org.apache.wsif.WSIFException: Please specify a PortType. Choices are: {{http://www.xignite.com/services/}XigniteSecurityHttpPost, {http://www.xignite.com/services/}XigniteSecuritySoap, {http://www.xignite.com/services/}XigniteSecurityHttpGet} now, how can i specify it ? reading the usage i guess it's something like operation[port] but tryin LookupStock[XigniteSecuritySoap] doesnt work. So, how can i do it ? 2)I've found another WSIF example on the web, i added it to my Eclipse project, added all the jars but Eclipse still says there's an error in WSIFService service = null; service = WSIFServiceFactory.newInstance().getService(..... Eclipse says the error is Syntax error on token "=", "Identifier" expected it seems strange, because i found many sources using service = WSIFSeviceFactory..... any hint ? thank you in advance, Norberto Carnelli
