[JBossWS] - Issue with dotNet client and Credentials
by noclueu2
Hello all,
I have tried the JSR-181 EJB Endpoint example at http://labs.jboss.com/portal/jbossws/user-guide/en/html/endpoints.html with .Net as a client. Following the example, everything works great. Now when I try to add authentication to it by adding annotations:
| @RolesAllowed("friend")
| @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false)
| @SecurityDomain(value="JBossWS")
|
I get a "The request failed with HTTP status 505: HTTP Version Not Supported." error at the .Net client. Here is some of that code.
| MagicService ms = new MagicService();
| ms.PreAuthenticate = true;
| CredentialCache creds = new CredentialCache();
| creds.Add(new Uri(ms.Url), "BASIC", new NetworkCredential("kermit", "thefrog"));
| ms.Credentials = creds;
| ms.pullFromHat("Rabbit");
|
Any thoughts? Do I need to add the file ServerHandlers.xml somewhere in my jar file, do I need the jboss-wsse-server.xml file already? I am trying to do everything in small steps, was just adding the annotations too small of a step?
Thanks,
Richard K.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028597#4028597
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028597
17 years, 9 months
[JBossWS] - wsconsume -- unable to resolve type definition
by tperrigo
I'm trying to use wsconsume to generate a client for a (.NET) web service, but I'm getting the following error:
anonymous wrote :
| [exec] warning: src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
| [exec] line ? of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined simple or complex type 'soapenc:Array'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined attribute 'soapenc:arrayType'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined simple or complex type 'soapenc:Array'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined attribute 'soapenc:arrayType'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined simple or complex type 'soapenc:Array'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined attribute 'soapenc:arrayType'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined simple or complex type 'soapenc:Array'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] error: undefined attribute 'soapenc:arrayType'
| [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?sch...
| [exec] org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType'
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213)
| [exec] at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
| [exec] at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)
| [exec] at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)
| [exec] at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)
| [exec] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)
| [exec] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)
| [exec] at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:194)
| [exec] at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:77)
| [exec] Caused by: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType'
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:128)
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2207)
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:224)
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:181)
| [exec] ... 8 more
| [exec] Caused by: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType'
| [exec] at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:130)
| [exec] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:131)
| [exec] at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(DelayedRef.java:90)
| [exec] at com.sun.xml.xsom.impl.parser.DelayedRef.run(DelayedRef.java:65)
| [exec] at com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:94)
| [exec] at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:190)
| [exec] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:487)
| [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:203)
| [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:67)
| [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:126)
| [exec] ... 11 more
| [exec] error: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType'
|
I'm really quite clueless as to what this means, or how to resolve it. I'm using JBossWS 1.2.0.SP1 and JBoss 4.2.0.CR1. Any help would be very much appreciated!
Thanks,
Tim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028474#4028474
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028474
17 years, 9 months
[JBossWS] - Problem calling a web service that requires empty input
by zhijun
I'm trying to call a Web service using a method that doesn't take an input parameter. The WSDL for the input parameter is this:
<element name="getAllValues">
| <complexType>
| <sequence />
| </complexType>
| </element>
I'm using call.invoke(Object[]) method to call it. I'm always getting the following ArrayIndexOutOfBoundsException no matter how I manipulate the Object[] for this call. It feels like JBossWS is having problem with this situation/WSDL description.
2007-03-15 10:48:18,870 DEBUG [org.jboss.ws.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@1267610
| 2007-03-15 10:48:18,916 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception
| java.lang.ArrayIndexOutOfBoundsException: 0
| at org.jboss.ws.binding.EndpointInvocation.initInputParams(EndpointInvocation.java:300)
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:642)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:90)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| ... ...
|
Is this a know issue or am I doing something wrong?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028422#4028422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028422
17 years, 9 months
[JBossWS] - Re: Need help on wsdl first webservice approach documentatio
by trivedikumar_mca@yahoo.com
Hi Andy,
As you said, I downloaded and installed 1.0.4GA in jboss4.0.4. But its not working. When I look at the link http://localhost:8080/jbossws/services for services, I was getting the following error:
=====================================
19:46:22,861 ERROR [[ContextServlet]] Servlet.service() for servlet ContextServlet threw exception
java.lang.NoSuchMethodError: org.jboss.ws.server.ServiceEndpointManagerMBean.showServiceEndpointTable()Ljava/lang/String;
at org.jboss.ws.server.ContextServlet.doGet(ContextServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
============================================
What went wrong?
Thanks,
Trivedi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028399#4028399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028399
17 years, 9 months