Hi,
I have created BSV, have created simple process MyTestProcess in it without any input parameters and with one rule: DISPLAY MESSAGE 'My Test Message'. Then created one service MyTestService1 in BSV that uses this process and Standard reply. In access levels have set that Administator has full access to everything. Published BSV and logged-in as administator. wsdl is availabe through http://localhost:8080/AwareIM/services/NBDAB?wsdl. Then trying to submit soap message to AwareIM but always in tomcat log seeing exception:
Received request for service
Exception thrown in web service MyTestService1 com.bas.connectionserver.server.AccessDeniedException null
com.bas.connectionserver.server.AccessDeniedException
at com.bas.connectionserver.server.ConnectionFactory.createLocalSocketConnection(Unknown Source)
at com.bas.webapp.webservices.NBDAB.MyTestService1(NBDAB.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188-)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108-)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528-)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
That is response that I'm getting:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mad:sd="http://www.w3.org/2001/XMLSchema" xmlns:mad:si="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:MyTestService1Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservices.webapp.bas.com">
<ns1:MyTestService1Return href="#id0"/>
</ns1:MyTestService1Response>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:BAS_StandardReply" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:NBDAB">
<m_basNotifMessage xsi:type="xsd:string" xsi:nil="true"/>
<m_basNotifStatus xsi:type="xsd:int">2</m_basNotifStatus>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
And here is request:
POST http://localhost:8080/AwareIM/services/NBDAB HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:8080
Content-Length: 610
<soapenv:Envelope xmlns:mad:si="http://www.w3.org/2001/XMLSchema-instance" xmlns:mad:sd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.webapp.bas.com">
<soapenv:Header/>
<soapenv:Body>
<web:MyTestService1 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<domainName xsi:type="xsd:string">NBDAB</domainName>
<userName xsi:type="xsd:string">admin</userName>
<password xsi:type="xsd:string">password</password>
</web:MyTestService1>
</soapenv:Body>
</soapenv:Envelope>
What means parameter domainName, I guess that could leave it empty? Tried that - but no success. Where could I see possible web service response codes and descriptions of them? Seems that can't find any documentation.
Also discovered seems that another bug. Someone in forum posted about it already. When in production and logged in as admin user, when creating another users. getting invalid credentials exception. When trying to create the same user again, AwareIM responds that such user already exists.
Thanks,
Zigurds