我在Glassfish 3.1
新设置的Debian"Squeeze"服务器上遇到了麻烦.这是一个已设置的测试服务器,Glassfish
安装已从工作服务器复制到另一台服务器.
我试过跑:
# ./asadmin start-domain
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed.
Run Code Online (Sandbox Code Playgroud)
我也尝试重新启动域,因为我想它可能正在运行:
# ./asadmin restart-domain
Server is not running, will attempt to start it...
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command restart-domain failed.
Run Code Online (Sandbox Code Playgroud)
此时我确认Glassfish
没有运行所以我检查了端口4848是否被占用:
# netstat -aon | grep 4848
Run Code Online (Sandbox Code Playgroud)
什么也没有回来.
我怀疑是 …
我正在开发一个Java 6应用服务器,它有一个Web服务,用于接收包含HL7消息的SOAP消息.Java应用程序在Glassfish 3.1上运行.客户端是第三方开发的C#应用程序(在Microsoft .net 4.0框架上运行),它将这些SOAP消息发送到Java服务器.
我最初的问题是客户端无法解析服务器生成的WSDL.我已经通过实现自己的自定义WSDL并相应地调整它来解决这个问题.这允许客户端解析WSDL并将SOAP消息发送到我的Java服务器应用程序.
但是,每次在服务器端收到消息时,参数(名为"putXML")都在接收null
值.
收到消息时,Glassfish服务器日志显示以下内容:
Received WS-I BP non-conformant Unquoted SoapAction HTTP header: http://MyProject.MyPackage/putHL7Data
Received Message: null
Run Code Online (Sandbox Code Playgroud)
这是我创建并与SOAP Web服务相关联的自定义WSDL:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
targetNamespace="http://MyProject.MyPackage/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:tns="http://MyProject.MyPackage/"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsp="http://www.w3.org/ns/ws-policy"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://MyProject.MyPackage/">
<s:element name="putHL7Data">
<s:complexType>
<s:sequence>
<s:element name="putXML" type="s:string" minOccurs="0" maxOccurs="1"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="putHL7DataResponse">
<s:complexType>
<s:sequence>
<s:element name="return" type="s:string" minOccurs="0" maxOccurs="1"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="putHL7DataSoapIn">
<wsdl:part name="parameters" element="tns:putHL7Data"/>
</wsdl:message>
<wsdl:message name="putHL7DataSoapOut"> …
Run Code Online (Sandbox Code Playgroud)