The security token could not be authenticated or authorized

2009-01-23 Thread jchappelle

I am having a problem with my java client talking to a .NET web service. I've
bee working on this for two weeks so I'm hoping for any response.

I have a .NET client that was provided to me and it works fine. I was
emailed a security token from the organization providing the service with no
instructions on what that is for or how to use it. Here is the output of the
.NET client followed by my java client output:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>


http://cdr.ffiec.gov/public/services/TestUserAccess


uuid:5149a310-2cad-4cb6-b991-2d77ab80c578




http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous




https://cdr.ffiec.gov/public/pws/webservices/retrievalservice.asmx



2009-01-16T19:12:49Z
2009-01-16T19:17:49Z

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";

wsu:Id="SecurityToken-4009939f-0fa7-4d03-bda4-bf2035e3b562">
username
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>
8jFVXIDZvSw8+YWW58gabBE9+1c=


O8twiauocM1xHeFCwTPFQg==
2009-01-16T19:12:49Z




http://cdr.ffiec.gov/public/services"; />




http://schemas.xmlsoap.org/soap/envelope/";>
http://www.w3.org/2005/08/addressing";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
soapenv:mustUnderstand="1">
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="UsernameToken-29194312">
username
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>
/td4td6ueFVGxXf5V/xk3Lix7NA=


Gws4hhqV1nu1fGCxT5ImXg==

2009-01-23T16:12:57.296Z




https://cdr.ffiec.gov/public/pws/webservices/retrievalservice.asmx




http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous



urn:uuid:DC39179C3DE50AA4D11232727177131


http://cdr.ffiec.gov/public/services/TestUserAccess



http://cdr.ffiec.gov/public/services"; />




My java client using a generated stub from the wsdl:

public class RetrievalServiceDemo
{

public static void main(String[] args) throws Exception
{
System.setProperty("javax.net.ssl.trustStore","c:/Program
Files/Java/security/keystore.jks"); 
System.setProperty("javax.net.ssl.trustStorePassword", 
"password");
System.setProperty("javax.net.ssl.keyStore","c:/Program
Files/Java/security/keystore.jks"); 
System.setProperty("javax.net.ssl.keyStorePassword", 
"password");
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/redi/2009.1/soap/config");
RetrievalServiceStub stub = new
RetrievalServiceStub(ctx,"https://cdr.ffiec.gov/public/pws/webservices/retrievalservice.asmx";);
Options options = stub._getServiceClient().getOptions();
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy("C:/redi/2009.1/soap/config/policy.xml"));
RetrievalServiceStub.TestUserAccess req = new
RetrievalServiceStub.TestUserAccess();
RetrievalServiceStub.TestUserAccessResponse res =
stub.TestUserAccess(req);
System.out.println(res.get

doubt regarding samples.stock.GetQuote in Step 7: Testing in installation guide

2009-01-23 Thread Sachin Parnami
Hi All,

Being a novice i have just embarked on my studies with Axis when i was
trying to figure out the RESPONSE coming from server for the Step 7: Testing
in installation guide
 with that when ever we pass this command
java -cp $AXISCLASSPATH samples.stock.GetQuote
-lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX

we get result some thing like

55.25

Could any buddy please help me out for the Responsible file which generates
the response for this request?

-- 
Regards,
Sachin Parnami


Rampart policy to include generated SAML assertion token!!

2009-01-23 Thread Seshi Patibanda
Hi all,
 
I am trying to include a SAML token that was generated by the security provider 
and passed to us as a Session attribute (at Runtime). For testing, I have 
retrieved the SAML assertion token externally and attempting to include in the 
SOAP header by hard-coding the token in the mySamlPolicy.xml file. All I need 
to do (for testing) is just pass the retrieved SAML token to the remote web 
service (SSL-enabled) via SOAP header in the request.
 
Deployed Apache Rampart 1.4 module correctly as per the samples. Using Axis2 
client and stubs generated by WSDL2Java tool. Also, using a policy based 
approach (mySamlPolicy.xml attached). I can see the  header but 
NO assertion token included in the SOAP header. Assertion tag shown in the 
policy file is truncated (for security reasons). 
 
Any feedback/suggestions in this regard is highly appreciated. 
 
Thanks,
 
Seshi P.
 
 
SOAP request message:
===
DEBUG [httpclient.wire.content] >> "http://schemas.xmlsoap.org/soap/envelope/";>[\n]"
[java] DEBUG [httpclient.wire.content] >> "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 soapenv:mustUnderstand="1">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 
wsu:Id="Timestamp-20735553">2009-01-24T00:44:49.546Z2009-01-24T00:49:49.546ZHello 
Seshi!"
[java] 
==
 
SOAP response message received:
==
 
DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] Request 
body sent
 [java] DEBUG [httpclient.wire.header] << "HTTP/1.1 500 Internal Server 
Error[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "HTTP/1.1 500 Internal Server 
Error[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "Server: 
Apache-Coyote/1.1[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "Content-Type: 
text/xml;charset=UTF-8[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "Content-Length: 223[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "Date: Sat, 24 Jan 2009 00:44:14 
GMT[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "Connection: close[\r][\n]"
 [java] DEBUG [httpclient.wire.header] << "[\r][\n]"
 [java] DEBUG [httpclient.wire.content] << "http://schemas.xmlsoap.org/soap/envelope/";>soap:ServerNo
 SAML Assertion was 
found!"
 [java] ERROR [org.apache.axis2.engine.AxisEngine] SOAP header missing
 [java] org.apache.axis2.AxisFault: SOAP header missing


http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
	
	  
		http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
		  
			
			  

			  
			
			
			  

			  
			
			
			  

			  
			
			
		  
		
		
		http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
			http://schemas.xmlsoap.org/ws/2004/09/policy";>
  	http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>
	
		
http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; AssertionID="_87df086111ccda39741d133dcdffe001" IssueInstant="2009-01-23T15:05:04.650Z" Issuer="https://"; MajorVersion="1" MinorVersion="1

	  
	

			
			
	
		
		
		http://ws.apache.org/rampart/policy";> 
			 
PKCS12
C:\tomcat_5.5\xxx.p12
x
 C:\tomcat_5.5\xxx.jks
			x 
			
		
		
	  
	





WS_Security with Axis2 using ServiceClient and OperationClient

2009-01-23 Thread Wishing Carebear
Hello:
I'm using the Cleint API's (ServiceClient and OperationClient) to consume
webservices. I have been successful so far writing dynamic clients ( without
using wsdl2java).

Now want to integrate WSSecurity feature with the dynamic clients.

Would like to know if there are any examples how to do WS_Security with
Axis2.

Thanks for your time and help,

cabear


Re: deploying axis2 on Tomcat6 permissions problem

2009-01-23 Thread William Fulton

Problem resolved once I'd turned off the Tomcat security with:
TOMCAT6_SECURITY=no
in /etc/default/tomcat6 and possibly also write permissions needed for 
/etc/tomcat as outlined in 
https://help.ubuntu.com/8.10/serverguide/C/tomcat.html.


The Tomcat security manager documentation (installed by default at 
http://localhost:8080/docs/security-manager-howto.html) talks about 
setting up the catalina.policy file and says "Debugging the permission 
that is missing can be challenging". That's exactly how I found it! I 
had a go using info from here:


http://markmail.org/search/?q=axis2+AccessControlException#query:axis2%20AccessControlException+page:1+mid:q7lasiqni2jsbhte+state:results
and http://ubuntuforums.org/archive/index.php/t-227286.html but gave up 
in the end and it looks like I'll have to use TOMCAT6_SECURITY=no instead.


Would be useful to have some documentation from the Axis2 folk as to 
what the security manager settings need to be and add into a Tomcat 
section in "Application Server Specific Configuration Guide" in the 
Axis2 docs,  as spending an age just getting axis2 working seems plain 
wrong.


William

William Fulton wrote:

Just for clarification, Tomcat reports:
|CATALINA_HOME|: |/usr/share/tomcat6|
|CATALINA_BASE|: |/var/lib/tomcat6|

and I can see the axis2 jsp files in:

/var/lib/tomcat6/webapps/axis2/axis2-web/*.jsp

William

William Fulton wrote:

I'm using a freshly installed Tomcat6 on Intrepid Ubuntu having done:

sudo apt-get install tomcat6
sudo apt-get install tomcat6-docs
sudo apt-get install tomcat6-examples
sudo apt-get install tomcat6-admin

I modified the Realm to use a MemoryRealm. I then used the Tomcat Web 
Application Manager to deploy axis2.war (from axis2-1.4.1-war.zip). 
This succeeded, as I get the following response:


OK - Deployed application at context path /axis2

and I can see the the axis2.war and "exploded" or unpacked directory 
axis2 under /var/lib/tomcat6/webapps/ ($CATALINA_BASE/webapps). 
However, when I go to http://localhost:8080/axis2, I get one of two 
different exceptions...


If I issue
 sudo /etc/init.d/tomcat6 restart
first, then go to http://localhost:8080/axis2, I get:


HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

org.apache.jasper.JasperException: 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler)
   
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:207) 


   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
   
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)

   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) 

   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) 

   
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   java.lang.reflect.Method.invoke(Method.java:597)
   
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) 



*root cause*

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler)
   
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) 

   
java.security.AccessController.checkPermission(AccessController.java:546) 


   java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)

   sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
   java.lang.ClassLoader.loadClass(ClassLoader.java:300)
   java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   
org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:203) 

   org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown 
S

Re: Design AXIS2 web service for .NET

2009-01-23 Thread etcuser

Thanks Martin, thanks Jose for this rapid answears. I will try it out. Jose,
you're right. I plan to develope a VB.NET client, so I look for the wsdl.exe
in my .NET framwork. The WSDL has defined the complex type Weather and the
methods I mentioned. So I think Martin's approach could work.

Thanks to you and I will report.

etcuser
-- 
View this message in context: 
http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21635202.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Design AXIS2 web service for .NET

2009-01-23 Thread José Ferreiro
Hello,

This information is provided for explanation.

You would like to have a VB .net client.
The explanations provided below (Martin's mail) are for a C# (c-sharp) .net
client.
If you are using .net 2.0 the you may find the program wsdl.exe in the
installed .net package in your computer.

Hope those explanations provided you additional help to the excellent one
provided by Martin below and the link he provided to his example.

HTH too.

Rgds,
jose ferreiro

On Fri, Jan 23, 2009 at 6:29 PM, Martin Gainty  wrote:

>
> http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html
>
> Create the .NET Service call from the WSDL
> wsdl /l:CS /protocol:SOAP
> http://localhost/ServerName/ServerServiceName.asmx?wsdl
>
> then compile the service
> csc /t:library /r:System.WebServices.sll /r:System.xml.dll OIDServer.cs
>
> then create the client
> wsdl /l:CS /protocol:SOAP http://localhost/OIDServer/OIDServer.asmx?WSDL
> wsdl /l:CS /protocol:HttpGet
> http://localhost/OIDServer/OIDServer.asmx?WSDL
> wsdl /l:CS /protocol:HttpPost
> http://localhost/OIDServer/OIDServer.asmx?WSDL
>
> Now compile
> csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs
>
> HTH
> Martin Gainty
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>
>
> > Date: Fri, 23 Jan 2009 08:25:44 -0800
> > From: mathias.muel...@etc-consult.de
> > To: axis-user@ws.apache.org
> > Subject: Design AXIS2 web service for .NET
>
> >
> >
> > Hello,
> >
> > I'm new to AXIS2 web services. I have studied the POJO Weather example of
> > the AXIS2 user guide. The example runs fine.
> >
> > Now I have a question to make this web service available for a VB .NET
> > client.
> >
> > How can I get access to the methods of the Weather class? Do I have to
> make
> > these methods available in the WeatherService class and is this the right
> > design pattern for this case? I have access to the methods
> setWeather(...)
> > and getWeather() from the .NET client.
> >
> > Best regards, etcuser
> >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
>
> --
> Windows Live™ Hotmail(R)…more than just e-mail. See how it 
> works.
>



-- 
José Ferreiro
Systems Analysis and Design Specialist
MSc in Communication Systems, EPFL.

"Think little goals and expect little achievements. Think big goals and win
big success."  David Joseph Schwartz


Re: Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
More Findings,

Aparently this issue had nothing to do with what I described, but with some
sort of bug that makes rampart build X509v1 security tokens even when we
especifically configure x509v3 tokens like this:

http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient
">






Is there a know work around?


regards,


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)


On Fri, Jan 23, 2009 at 9:14 AM, m4rkuz  wrote:

>
> Sorry in the last message I forgot to put another diference that maybe more
> trouble,
>
> Rampart:
>
> http://localhost:8088/gateway/services/SID0003001
>
> urn:uuid:AECDDCE53586EDD65F1232669747468
> http://test.heinsohn.com//talkToMe
> ...
>
> In the Oracle version that part doesn't exist, there is no
> , or  Tags..
>
>
> Marcus V. Sánchez D.
> __
> Enterprise Developer.
> Sun Certified Java Programmer (SCJP)
>
>
> On Fri, Jan 23, 2009 at 8:35 AM, m4rkuz  wrote:
>
>>
>> Hi Everyone,
>>
>> I'm new to rampart but learning quickly, well not quikly enough because
>> I've been having some problems trying to invoke a WS that was made using
>> oracle tools, is supposed to be easy initialy I just had to sing the message
>> but even at that level I haven't been able to do it, I went thru examples on
>> the distribution (1.4.1) and some webs but I'm still getting :
>>
>> FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token
>> was provided
>>
>> I asked for a  successful soap message example to compare the one I
>> generate with a good one, (attached to the message) the only big diference I
>> see is that in the rampart made soap message all the URI attributes are not
>> encripted as they do in the oracle example
>>
>> Rampart:
>> ...
>> 
>> ..
>> 
>> 
>> > 
>>
>> Oracle:
>> ..
>> 
>> ...
>> 
>> 
>> > 
>>
>>
>> What is all about? (I'm really newbie) and how can I match that using
>> rampart ??
>>
>>
>> Best Regards,
>>
>>
>> Marcus V. Sánchez D.
>> __
>> Enterprise Developer.
>> Sun Certified Java Programmer (SCJP)
>>
>>
>


NTLM Authentication Problem

2009-01-23 Thread AUYEUNG Andy
 

I am using axis2's ServiceClient to call to a webservice outside my
company's network. However, I got an error that said that there was a
NTLM challenge. 

(SEVERE: Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException:
Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials)

 

Here is what I don't understand.

1. When I use the ServiceClient to call to a webservice that is inside
the network, everything was fine. (Expected !)

2. When I use the ServiceClient to call to a webservice that is outside
the network, I got NTLM challenge. (hmm, OK...)

3. When I use the plain Java client to call to the same webservice that
is outside the network, everything was fine. (What ?)

 

Below are the code of 2 and 3 respectively. Anyone know why and the
solution to make 2 work ?



public class Scenario1iClient {

public static void main(String[] args) throws Exception {

ServiceClient client = new ServiceClient();

  Options opts = new Options();

  opts.setTo(new
EndpointReference("http://ws.cdyne.com/ip2geo/ip2geo.asmx";));

  opts.setAction("urn:ResolveIP");

  client.setOptions(opts);  

OMElement res = client.sendReceive(createPayLoad());

}

 

public static OMElement createPayLoad() {

OMFactory fac = OMAbstractFactory.getOMFactory();

OMNamespace omNs =
fac.createOMNamespace("http://ws.cdyne.com/IP2Geo";, "ns1");

OMElement method = fac.createOMElement("ResolveIP", omNs);

OMElement value1 = fac.createOMElement("ipAddress", omNs);

value1.setText("69.147.76.15");

method.addChild(value1);

OMElement value2 = fac.createOMElement("licenseKey", omNs);

value2.setText("0");

method.addChild(value2);

System.out.println("method:"+method.toString());

return method;

}

}

===

public class HttpTest3 {

  public static void main(String[] args) throws Exception

  {

String httpsURL = "http://ws.cdyne.com/ip2geo/ip2geo.asmx";;

String urlParameters = "http://ws.cdyne.com/IP2Geo\
 "\n"+  

"xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\
 "\n"+  

"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\
 "\n"+  

"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\
 ">\n"+  

"\n"+  

"\n"+  

"\n"+  

"\n"+

"69.147.76.15\n"+

"0\n"+

"\n"+  

"\n"+  

"\n";



URL myurl = new URL(httpsURL);

HttpURLConnection con =
(HttpURLConnection)myurl.openConnection();



con.setRequestMethod("POST");

con.setRequestProperty("Content-Type", "text/xml;
charset=utf-8");



con.setRequestProperty("Content-Length", "" +
Integer.toString(urlParameters.getBytes().length));

con.setRequestProperty("Content-Language", "en-US");  

con.setRequestProperty("SOAPAction",
"\"http://ws.cdyne.com/IP2Geo/ResolveIP\
 "");



con.setUseCaches (false);

con.setDoInput(true);

con.setDoOutput(true);

 

//Send request

DataOutputStream wr = new DataOutputStream (con.getOutputStream
());

wr.writeBytes (urlParameters);

wr.flush ();

wr.close ();



InputStream ins = con.getInputStream();

InputStreamReader isr=new InputStreamReader(ins);

BufferedReader in =new BufferedReader(isr);

 

String inputLine;

 

while ((inputLine = in.readLine()) != null)

System.out.println(inputLine);

 

in.close();

 

  }  

}

 



Help on: unspecified internal server error

2009-01-23 Thread Elisei Rotaru
Hello together,

I need a little help from you guys if it is at all possible. I am getting
crazy around here. My problem is as follows. I am acessing a web service
from Pubmed (that is an online database for literature in medicine) to fetch
for articles, authors and titles.

I wrote therefore a Java Program and i'm using Axis2 1.4 to build Querys and
i get Response Messages, everything works 100% fine.

I am trying now to build my own axis2 1.4 web service which does exactly the
same! Uses the method that works fine in a test class. When i test my own
web service in tomcat an "unspecified internal server error".

org.apache.axis2.AxisFault: Unspecified internal server error
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub.run_eFetch(EFetchPubmedServiceStub.java:183)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.pubmed.EFetch.singleEFetch(EFetch.java:158)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.pubmed.EFetch.eFetch(EFetch.java:54)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.PubmedQuery.sendQuery(PubmedQuery.java:213)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.services.QueryHandlerSkeleton.sendQuery(QueryHandlerSkeleton.java:69)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.services.QueryHandlerMessageReceiverInOut.invokeBusinessLogic(QueryHandlerMessageReceiverInOut.java:48)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Message = Unspecified internal server error
LocalizedMessage = Unspecified internal server error


Well, an "unspecified internal server error" doen't help me much. What does
that mean, and does someone know how to fix it?

I don't even know how to get more information on what is wrong. Server logs
or something? Where could i look?

Thanks in advance.

Elisei

-- 
--
Lass niemals einen PC wissen, dass Du es eilig hast!


RE: Design AXIS2 web service for .NET

2009-01-23 Thread Martin Gainty

http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html

Create the .NET Service call from the WSDL
wsdl /l:CS /protocol:SOAP 
http://localhost/ServerName/ServerServiceName.asmx?wsdl

then compile the service
csc /t:library /r:System.WebServices.sll /r:System.xml.dll OIDServer.cs

then create the client
wsdl /l:CS /protocol:SOAP http://localhost/OIDServer/OIDServer.asmx?WSDL
wsdl /l:CS /protocol:HttpGet http://localhost/OIDServer/OIDServer.asmx?WSDL
wsdl /l:CS /protocol:HttpPost http://localhost/OIDServer/OIDServer.asmx?WSDL

Now compile
csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs

HTH
Martin Gainty 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Date: Fri, 23 Jan 2009 08:25:44 -0800
> From: mathias.muel...@etc-consult.de
> To: axis-user@ws.apache.org
> Subject: Design AXIS2 web service for .NET
> 
> 
> Hello,
> 
> I'm new to AXIS2 web services. I have studied the POJO Weather example of
> the AXIS2 user guide. The example runs fine.
> 
> Now I have a question to make this web service available for a VB .NET
> client.
> 
> How can I get access to the methods of the Weather class? Do I have to make
> these methods available in the WeatherService class and is this the right
> design pattern for this case? I have access to the methods setWeather(...)
> and getWeather() from the .NET client.
> 
> Best regards, etcuser
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 

_
Windows Live™ Hotmail®…more than just e-mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009

Design AXIS2 web service for .NET

2009-01-23 Thread etcuser

Hello,

I'm new to AXIS2 web services. I have studied the POJO Weather example of
the AXIS2 user guide. The example runs fine.

Now I have a question to make this web service available for a VB .NET
client.

How can I get access to the methods of the Weather class? Do I have to make
these methods available in the WeatherService class and is this the right
design pattern for this case? I have access to the methods setWeather(...)
and getWeather() from the .NET client.

Best regards, etcuser


-- 
View this message in context: 
http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed up http headers

2009-01-23 Thread Conal Markey
Hi Andreas

Thanks for the link below.  I have forwarded this onto the ISA
administrator and they are looking into it at the moment.  
It may take a few days to resolve but I'll post back with the outcome.

Conal


-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: 22 January 2009 22:12
To: axis-user@ws.apache.org
Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
http headers

I don't see anything wrong in that request. My guess is that we are
actually looking in the wrong place. Probably there is nothing wrong
with the request, but there is an issue with the ISA server that
causes it to return a misleading error message. Something similar to
[1].

Andreas

[1] http://support.microsoft.com/kb/915045

On Thu, Jan 22, 2009 at 18:18, Conal Markey  wrote:
> Hi Andreas
>
> Below are the headers captured using wireshark.
>
> Conal
>
> POST http://xx..com/xdatawebservice/query.asmx
> HTTP/1.1\r\n
> Request Method: POST
> Request URI:
> http://xxx.x.com/xxdatawebservice/xxquery.asmx
> Request Version: HTTP/1.1
> Content-Type: application/soap+xml; charset=UTF-8;
>
action="http://..com/xDataWebService/xQuery/Queryxxx
> xxx"\r\n
> User-Agent: Axis2\r\n
> Proxy-Authorization: Basic bWF==\r\n
>Credentials: xxx:x
> Host: idstaging.moneymate.com\r\n
> Proxy-Connection: Keep-Alive\r\n
> Transfer-Encoding: chunked\r\n
> \r\n
>
>
>
> -Original Message-
> From: Conal Markey [mailto:c.mar...@kainos.com]
> Sent: 21 January 2009 11:09
> To: axis-user@ws.apache.org
> Subject: RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
> http headers
>
> Hi Andreas
>
> I'll set one of the tools up when I get back to this.  For the moment
> the headers below are what I had from debugging through my test
client.
> I got these from the requestHeaders attribute on the
> org.apache.commons.httpclient.methods.PostMethod object.
>
> [Content-Type: application/soap+xml;
>  charset=UTF-8;
>
action="http://.xxx.com/xDataWebService/Query/Query";
> , Host: xx..com
> , User-Agent: Axis2
> , Proxy-Authorization: Basic bWxx==
>
> ]
>
> Thanks
>
> Conal
>
>
> -Original Message-
> From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Sent: 21 January 2009 10:24
> To: axis-user@ws.apache.org
> Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
> http headers
>
> Conal,
>
> Can you try to intercept the request (headers) using a tool like
> Wireshark or Apache TCPMon and post it here?
>
> Andreas
>
> On Wed, Jan 21, 2009 at 10:25, Conal Markey 
wrote:
>> Andreas, I ran my test client with the code supplied below and I'm
> still
>> having the issue with headers.  See message below.
>>
>> HTTP/1.1 400 Bad Request ( The HTTP request includes a non-supported
>> header. Contact your ISA Server administrator.  )
>>
>> I need to get a POC working and have spent some time on this already
> so
>> for the moment I'm going to plan B!!  If I get a resolution to this
> I'll
>> post back to the forum.
>>
>> It seems to me though that the issue in Jira should not be marked as
>> resolved.
>>
>> Thanks
>>
>> Conal
>>
>>
>> -Original Message-
>> From: Conal Markey [mailto:c.mar...@kainos.com]
>> Sent: 20 January 2009 22:16
>> To: axis-user@ws.apache.org
>> Subject: RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed
up
>> http headers
>>
>> Thanks for the reply Andreas.
>>
>> Yes, I'm still seeing issues with this.  I'll patch the code tomorrow
>> with the source from the link you provided and see if it resolves the
>> issue I'm having.
>>
>> Thanks again
>>
>> Conal
>>
>>
>>
>> -Original Message-
>> From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
>> Sent: 20 January 2009 21:46
>> To: axis-user@ws.apache.org
>> Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed
up
>> http headers
>>
>> The code modifications can be found at [1]. Not sure how this change
>> would solve problems with screwed up headers. Are you still seeing
>> this issue?
>>
>> Andreas
>>
>> [1] http://svn.apache.org/viewvc?view=rev&revision=701047
>>
>> On Tue, Jan 20, 2009 at 17:29, Conal Markey 
> wrote:
>>> According to JIRA this item is resolved by Dimuthu Leelaranthe.
> Could
>> you
>>> supply details of the fix applied to resolve this and patched source
>> if
>>> possible?
>>>
>>>
>>>
>>> Thanks
>>>
>>> This e-mail is intended solely for the addressee and is strictly
>>> confidential; if you are not the addressee please destroy the
message
>> and
>>> all copies. Any opinion or information contained in this email or
its
>>> attachments that does not relate to the business of Kainos is
>personal
>> to
>>> the sender and is not given by or endorsed by Kainos. Kainos is the
>> trading
>>> name of Kainos Software Limited, registered in Northern Ireland
under
>>> company number: NI19370, having i

Re: http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error: cvc-enumeration-valid

2009-01-23 Thread hakon

hi

Did you manage to solve it, I've got the same problem and could not find any
solution to it.

I just copied the WS-Trust.wsdl and added binding and service.

cheers, håkon



Kai Petersen wrote:
> 
> Hi,
> I try to make a Security-Token-Service with a Token form of WS-Security
> from OASIS.
> 
> Problem: If I make wsdl2java using xmlbeans I get the following
> stacktrace. If I convert it with adb it works, but I think something
> should be wrong, and I don't want to get problems at a later task.
> 
> 
> Versions:
> axis2 v1.4
> jdk 1.6.0_06
> 
> 
> WSDL:
> =
> 
>xmlns="http://www.mysts.de/sts";
>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>   xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/";
> 
> xmlns:ns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> 
> xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
>   xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing";
>   xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/09/policy";
>   xmlns:ns4="http://schemas.xmlsoap.org/ws/2005/02/trust";
>   xmlns:ns5="http://www.w3.org/2000/09/xmldsig#";
>   xmlns:ns6="http://www.w3.org/2001/XMLSchema";
>   xmlns:ns7="http://schemas.xmlsoap.org/soap/encoding/";
>   targetNamespace="http://www.mysts.de/sts";>
>   
>   
>  xmlns="http://www.w3.org/2001/XMLSchema";
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>  
> namespace="http://schemas.xmlsoap.org/ws/2005/02/trust";
>   
> schemaLocation="http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd";
> />
>   
>   
>   
>   
>/>
>   
>   
>  element="ns4:RequestSecurityTokenResponse" />
>   
>   
>   
>  parameterOrder="parameters">
>   
>   Dieser Service gibt nach erfolgreicher 
> Authentifizierung
>   ein Security Token (Security Context Token) 
> zurueck. Die
>   Authentifizierung kann dabei entweder mit 
> Benutzername
>   und Passwort oder mit einem VDG-Ticket erfolgen.
>   
>   
>   
>   
>   
>   
>  type="SecurityTokenServicePortType">
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>   
>soapAction="http://localhost:8080/sts"; />
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   Dieser Service stellt Funktionen fuer die 
> Authentifizierung
>   mit Benutzername und Passwort oder mit einem VDG-Ticket 
> zur
>   Verfuegung.
>   
>   
>   
>   Diese Funktion erledigt die Authentifizierung 
> mit
>   Benutzername und Passwort.
>   
>  
> location="http://host/path/services/UserPasswordLogin"; />
>   
>   
>   
>   Diese Funktion erledigt die Authentifizierung 
> mit einem
>   VDG-Ticket.
>   
>  
> location="http://host/path/services/VDGTicketLogin"; />
>   
>   
>   
>   
> 
> 
> 
> 
> 
> 
> CON-OUT:
> 
> wsdl2java -d xmlbeans -s -wv 1.1 -ss -uri sts.wsdl
> Using AXIS2_HOME:   D:\_bin\lib\axis2-1.4
> Using JAVA_HOME:C:\Programme\Java\jdk1.6.0_06
> Retrieving document at 'sts.wsdl'.
> Retrieving schema at
> 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd', relative to
> 'file:/D:/_ws-diplom/wsdl_sts/sts.wsdl'.
> Retrieving schema at 'http://schemas.xmlsoap.org/ws/2004/08/addressing/',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
> relative to
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity

Re: AxisServlet:172 error.

2009-01-23 Thread Toriacht

Hi Amila,

Thanks for the reply, I've pasted my short services.xml file below. I
retrieved this from 

C:\brianworkspacetwo\mywebservice\WebContent\WEB-INF\services\AccountEventHandlerSoap\META-INF

Thanks,
Tori



Please Type your service description here


http://www.w3.org/2004/08/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
http://www.w3.org/2004/08/wsdl/in-out"; 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

com.youpark.webservice.AccountEventHandlerSoap




Amila Suriarachchi wrote:
> 
> 
> 
> May be a problem with your services.xml. Can you send that file?
> 
> The problem is your Inonly  axisoperation contains an InOut message
> receiver
> which is wrong.
> 
> thanks,
> Amila.
> 
>>
>>
>>at
>>
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>>
>>at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>>
>>at
>>
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>>
>>at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
>>
>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>>
>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>>at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>
>>at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>>at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>
>>at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>
>>at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>
>>at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>
>>at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>
>>at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>
>>at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>
>>at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>
>>at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>
>>at java.lang.Thread.run(Unknown Source)
>> --
>> View this message in context:
>> http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21625125.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
Sorry in the last message I forgot to put another diference that maybe more
trouble,

Rampart:

http://localhost:8088/gateway/services/SID0003001

urn:uuid:AECDDCE53586EDD65F1232669747468
http://test.heinsohn.com//talkToMe
...

In the Oracle version that part doesn't exist, there is no
, or  Tags..


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)


On Fri, Jan 23, 2009 at 8:35 AM, m4rkuz  wrote:

>
> Hi Everyone,
>
> I'm new to rampart but learning quickly, well not quikly enough because
> I've been having some problems trying to invoke a WS that was made using
> oracle tools, is supposed to be easy initialy I just had to sing the message
> but even at that level I haven't been able to do it, I went thru examples on
> the distribution (1.4.1) and some webs but I'm still getting :
>
> FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token
> was provided
>
> I asked for a  successful soap message example to compare the one I
> generate with a good one, (attached to the message) the only big diference I
> see is that in the rampart made soap message all the URI attributes are not
> encripted as they do in the oracle example
>
> Rampart:
> ...
> 
> ..
> 
> 
>  
>
> Oracle:
> ..
> 
> ...
> 
> 
>  
>
>
> What is all about? (I'm really newbie) and how can I match that using
> rampart ??
>
>
> Best Regards,
>
>
> Marcus V. Sánchez D.
> __
> Enterprise Developer.
> Sun Certified Java Programmer (SCJP)
>
>


Re: Axis - return types

2009-01-23 Thread Amila Suriarachchi
this[1] may help if you try to develop a service starting from the wsdl file

thanks,
Amila.
[1] https://wso2.org/library/2873

On Fri, Jan 23, 2009 at 7:33 PM, gezhall  wrote:

>
> Many thanks. I understand in more detail now, but it's all very complex to
> me. I think I need a really good step by step guide - a book, or online
> resource. The Axis user guides are good, but too brief for me.
>
> Is there anything up-to-date which you would recommend to teach me the
> basics?
>
>
> lkamal wrote:
> >
> > Not sure whether u haven't looked at the client side class generation
> > part.
> > Using the WSDL file you can generate classes for client side.
> >
> > Any custom class that you write, can be used as service return types. Do
> u
> > need further clarifications?
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Axis---return-types-tp21604479p21624916.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: List of free webservices

2009-01-23 Thread gezhall

Thanks for the replies all - it was my network proxy. Unfortunately all
outgoing calls on most ports are blocked - so I'll have to try this at home!


José Ferreiro wrote:
> 
> Hello,
> 
> Just to follow on what Andreas said.
> If there is a proxy server you may lauch your client the following
> command:
> 
> java -Dhttp.proxyHost=[proxyServer.com] -Dhttp.proxyPort=[#port number]
> -jar
> yourWebServiceClientPackagedAsAjarFile.jar
> 
> Hope this helps!
> jose ferreiro
> 
> On Thu, Jan 22, 2009 at 8:23 PM, Andreas Veithen
> wrote:
> 
>> One thing you should check is whether your client uses an HTTP proxy.
>> Maybe the browser you are using is correctly configured to send
>> requests through a proxy, but your Axis2 client is not.
>>
> 

-- 
View this message in context: 
http://www.nabble.com/List-of-free-webservices-tp21315053p21624996.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: List of free webservices

2009-01-23 Thread gezhall

Thanks for the replies all - it was my network proxy. Unfortunately all
outgoing calls on most ports are blocked - so I'll have to try this at home!


José Ferreiro wrote:
> 
> Hello,
> 
> Just to follow on what Andreas said.
> If there is a proxy server you may lauch your client the following
> command:
> 
> java -Dhttp.proxyHost=[proxyServer.com] -Dhttp.proxyPort=[#port number]
> -jar
> yourWebServiceClientPackagedAsAjarFile.jar
> 
> Hope this helps!
> jose ferreiro
> 
> On Thu, Jan 22, 2009 at 8:23 PM, Andreas Veithen
> wrote:
> 
>> One thing you should check is whether your client uses an HTTP proxy.
>> Maybe the browser you are using is correctly configured to send
>> requests through a proxy, but your Axis2 client is not.
>>
> 

-- 
View this message in context: 
http://www.nabble.com/List-of-free-webservices-tp21315053p21624962.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: AxisServlet:172 error.

2009-01-23 Thread Amila Suriarachchi
On Fri, Jan 23, 2009 at 4:37 PM, Toriacht  wrote:

>
> Hi, I have a simple webservice, written in java, that accepts a number of
> parameters and processes them. If i implement this service (java method)
> returning a string to the client it works fine, but when i change it to a
> void method (preferred option) I keep getting an AxisServlet:172 error. The
> only change I make is to change the rerurn type from String to void and
> generate the web service again (Eclipse). I have pasted the error below.
>
>
>
> If i change back to a non void method it works fine...
>
>
>
> Any ideas appreciated. Also if this is the wrong forum please let me know
>
>
>
> Thanks,
>
> Tori
>
>
>
> error:
>
> 09:51:19,871 ERROR AxisServlet:172 - An access occurred that is not valid.
>
> java.lang.UnsupportedOperationException: An access occurred that is not
> valid.
>
>at
>
> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109)
>
>at
>
> org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190)
>
>at
>
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:37)


May be a problem with your services.xml. Can you send that file?

The problem is your Inonly  axisoperation contains an InOut message receiver
which is wrong.

thanks,
Amila.

>
>
>at
>
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>
>at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>
>at
>
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>
>at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>
>at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>
>at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>
>at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>
>at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>
>at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>
>at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>
>at java.lang.Thread.run(Unknown Source)
> --
> View this message in context:
> http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Axis - return types

2009-01-23 Thread gezhall

Many thanks. I understand in more detail now, but it's all very complex to
me. I think I need a really good step by step guide - a book, or online
resource. The Axis user guides are good, but too brief for me.

Is there anything up-to-date which you would recommend to teach me the
basics?


lkamal wrote:
> 
> Not sure whether u haven't looked at the client side class generation
> part.
> Using the WSDL file you can generate classes for client side.
> 
> Any custom class that you write, can be used as service return types. Do u
> need further clarifications?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis---return-types-tp21604479p21624916.html
Sent from the Axis - User mailing list archive at Nabble.com.



Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
Hi Everyone,

I'm new to rampart but learning quickly, well not quikly enough because I've
been having some problems trying to invoke a WS that was made using oracle
tools, is supposed to be easy initialy I just had to sing the message but
even at that level I haven't been able to do it, I went thru examples on the
distribution (1.4.1) and some webs but I'm still getting :

FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token was
provided

I asked for a  successful soap message example to compare the one I generate
with a good one, (attached to the message) the only big diference I see is
that in the rampart made soap message all the URI attributes are not
encripted as they do in the oracle example

Rampart:
...

..



...



http://schemas.xmlsoap.org/soap/envelope/";
	xmlns:xsd="http://www.w3.org/2001/XMLSchema";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xmlns:ns0="http://test.heinsohn.com/types/";>
	
		http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
			xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
			xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
			http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
wsu:Id="5KdQ0TRTux484dTYM5mpHQ22"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
MIICQjCCAasCBEjSYtkwDQYJKoZIhvcNAQEFBQAwaDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExEDAOBgNVBAcTB3NhbUhvbWUxDzANBgNVBAoTBnNhbU9yZzEQMA4GA1UECxMHc2FtRGVwdDESMBAGA1UEAxMJU2FtIE1vb3JlMB4XDTA4MDkxODE0MTY1N1oXDTA4MTIxNzE0MTY1N1owaDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExEDAOBgNVBAcTB3NhbUhvbWUxDzANBgNVBAoTBnNhbU9yZzEQMA4GA1UECxMHc2FtRGVwdDESMBAGA1UEAxMJU2FtIE1vb3JlMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCv3cDnMuNkqKweUeC458/74Kp4bht6ipjTQtgiR1xDUotymfMyOuYHzFCzbYv8z5N+jVP0pLXCN4eYqVJKZ20+mnDtxPZPKJsTLtnNF+VwoiVZ7GF5eb9Qrbul/6/veolFaMeJySUJEWaGRhiA3CsyWMUBirYtrItqe+puX2ivkwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKXJ6hI72drL+HGErxiBi5ToqTOv4frXH4TdTE2scSkl3DSZM0nryWfA76rxmxbxRSRzNAzs+nP6wWthpb5NcfUoMuZ/Zx+mSfTfoNWLDev2QaFbSIv/sFGZNfODGigOvAyCM33BtxFXXkR54bNfe13MBrLe/RSlzsBSrbf5w7/2
			
			http://www.w3.org/2000/09/xmldsig#";
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#";>

	http://www.w3.org/2001/10/xml-exc-c14n#"; />
	http://www.w3.org/2000/09/xmldsig#rsa-sha1"; />
	
		
			http://www.w3.org/2001/10/xml-exc-c14n#"; />
		
		http://www.w3.org/2000/09/xmldsig#sha1"; />
		
			r6mS6ytfF/8Hj5qOfC3Vy8o5n5c=
		
	
	
		
			http://www.w3.org/2001/10/xml-exc-c14n#"; />
		
		http://www.w3.org/2000/09/xmldsig#sha1"; />
		
			7g8/vO+zjJNHKyKPpJGhBDRNO8A=
		
	


	eF1WtunbSIGGMLDEurLqa5QTXoNYbHd0AG9Kg2glQVOZhvFJ0QvmMx3YNPuwbw5x7+lbGjRqSI9eD/EMwXyVAlvMTbMJJsspYoocS/tspTRqxIuKtI72qKIqOaUnXWJDFXocM9nxmqththJuuUf8Dji8+Y1rtHby9WlCh9EWkHI=


	http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
		xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
		http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
			xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
			xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; />
	

			
			http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
2009-01-22T21:19:31Z
2009-01-23T05:19:31Z
			
		
	
	http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
		
	

http://schemas.xmlsoap.org/soap/envelope/";>
	http://www.w3.org/2005/08/addressing";>
		http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
			soapenv:mustUnderstand="1">
			http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Timestamp-14707008">
2009-01-23T00:15:48.899Z
2009-01-23T00:20:48.899Z
			
			http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v1";
wsu:Id="CertId-1097338">MIICRDCCAa0CBElQ5UwwDQYJKoZIhvcNAQEFBQAwaTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCEZsb3JpZGFkMRAwDgYDVQQHEwdzYW1Ib21lMQ8wDQYDVQQKEwZzYW1PcmcxEDAOBgNVBAsTB3NhbURlcHQxEjAQBg

AxisServlet:172 error.

2009-01-23 Thread Toriacht

Hi, I have a simple webservice, written in java, that accepts a number of
parameters and processes them. If i implement this service (java method)
returning a string to the client it works fine, but when i change it to a
void method (preferred option) I keep getting an AxisServlet:172 error. The
only change I make is to change the rerurn type from String to void and
generate the web service again (Eclipse). I have pasted the error below.

 

If i change back to a non void method it works fine...

 

Any ideas appreciated. Also if this is the wrong forum please let me know

 

Thanks,

Tori

 

error:

09:51:19,871 ERROR AxisServlet:172 - An access occurred that is not valid.

java.lang.UnsupportedOperationException: An access occurred that is not
valid.

at
org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109)

at
org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190)

at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:37)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Unknown Source)
-- 
View this message in context: 
http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
Sent from the Axis - User mailing list archive at Nabble.com.



Transport error: 400 Error: Bad Request

2009-01-23 Thread Kiran Narasareddy
Hi,
   I am consuming a .Net web service in java code.(I used NETBEANS 6.1 to
generate the service client) When i run my client as standalone java
application, it works fine and the .Net service is consumed normally and i
get my result.
Now ,when  I use the same code and deploy it as an web service in axis2, it
doesnt work, giving the following error in return in browser...

* javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault:
Transport error: 400 Error: Bad Request*

Can anyone tell me what might be the reason??
Do i need to change anything when i deploy it as an web service in axis2?

Thanks in advance.

Kiran Narasareddy
Computers make very fast, very accurate mistakes.