Soap MTOM-prolog中[row,col{unknown source}]处的意外EOF:[1,0]

Soap MTOM-prolog中[row,col{unknown source}]处的意外EOF:[1,0],soap,postman,mtom,Soap,Postman,Mtom,我正试图通过邮递员发送多部分/相关的请求。但我得到了一个错误: <soap:Reason> <soap:Text xml:lang="en">Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]</soap:Text> </soap:Reason> prolog中意外的EOF 在[row,col{unknown source}]:[1,0] 端

我正试图通过邮递员发送
多部分/相关的
请求。但我得到了一个错误:

<soap:Reason>
    <soap:Text xml:lang="en">Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]</soap:Text>
</soap:Reason>

prolog中意外的EOF
在[row,col{unknown source}]:[1,0]
端点:发布

我使用的标题:

Content-Type:multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"
Soapaction:http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument
Accept:text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2
User-Agent:Oracle JAX-WS 2.1.5
Transfer-Encoding:chunked
Host:sdummy.test.net
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/plain; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--
curl --location --request POST 'https://stghilton.taleo.net/enterprise/soap?ServiceName=IntegrationManagementService' \
--header 'Content-Type: multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"' \
--header 'Soapaction: http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument' \
--header 'Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2' \
--header 'User-Agent: Oracle JAX-WS 2.1.5' \
--header 'Transfer-Encoding: chunked' \
--header 'Host: stghilton.taleo.net' \
--header 'Authorization: Basic UGhlbm9tOj80K2pTSlAz' \
--data-raw '--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/xml; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--'
内容类型:多部分/相关;start=“”;type=“应用程序/xop+xml”;边界=“uuid:7661941e-06d9-4961-af10-db612c7ffcc4”;start info=“text/xml”
Soapaction:http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument
接受:text/xml、多部分/相关、text/html、image/gif、image/jpeg、*;q=.2,*/*;q=.2
用户代理:Oracle JAX-WS 2.1.5
传输编码:分块
主机:sdummy.test.net
有效负载:

Content-Type:multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"
Soapaction:http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument
Accept:text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2
User-Agent:Oracle JAX-WS 2.1.5
Transfer-Encoding:chunked
Host:sdummy.test.net
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/plain; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--
curl --location --request POST 'https://stghilton.taleo.net/enterprise/soap?ServiceName=IntegrationManagementService' \
--header 'Content-Type: multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"' \
--header 'Soapaction: http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument' \
--header 'Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2' \
--header 'User-Agent: Oracle JAX-WS 2.1.5' \
--header 'Transfer-Encoding: chunked' \
--header 'Host: stghilton.taleo.net' \
--header 'Authorization: Basic UGhlbm9tOj80K2pTSlAz' \
--data-raw '--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/xml; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--'
——uuid:7661941e-06d9-4961-af10-db612c7ffcc4
内容Id:
内容类型:应用程序/xop+xml;字符集=utf-8;type=“text/xml”
内容传输编码:二进制
ps_sd_7701
http://www.taleo.com/ws/integration/toolkit/2005/07/action/import
http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
内容Id:
内容类型:文本/纯文本;字符集=ISO-8859-1
内容传输编码:二进制
test11@mailinator.com
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--

邮差生成的cURL命令:

Content-Type:multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"
Soapaction:http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument
Accept:text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2
User-Agent:Oracle JAX-WS 2.1.5
Transfer-Encoding:chunked
Host:sdummy.test.net
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/plain; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--
curl --location --request POST 'https://stghilton.taleo.net/enterprise/soap?ServiceName=IntegrationManagementService' \
--header 'Content-Type: multipart/related; start="<rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>"; type="application/xop+xml"; boundary="uuid:7661941e-06d9-4961-af10-db612c7ffcc4"; start-info="text/xml"' \
--header 'Soapaction: http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument' \
--header 'Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *;q=.2, */*; q=.2' \
--header 'User-Agent: Oracle JAX-WS 2.1.5' \
--header 'Transfer-Encoding: chunked' \
--header 'Host: stghilton.taleo.net' \
--header 'Authorization: Basic UGhlbm9tOj80K2pTSlAz' \
--data-raw '--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/03/addressing" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management">
    <SOAP-ENV:Header>
        <wsa:MessageID>ps_sd_7701</wsa:MessageID>
        <wsa:Action>http://www.taleo.com/ws/integration/toolkit/2005/07/action/import</wsa:Action>
        <wsa:ReplyTo>
            <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
        </wsa:ReplyTo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <wsa:submitLargeDocument>
            <wsa:Document>
                <Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com"/>
            </wsa:Document>
        </wsa:submitLargeDocument>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
Content-Id:<51349b7a-562a-4e98-ab8c-736cfecb03eb@example.jaxws.sun.com>
Content-Type: text/xml; charset=ISO-8859-1 
Content-Transfer-Encoding: binary
    <ImportEntities>
        <Candidate>
            <EmailAddress>test11@mailinator.com</EmailAddress>
        </Candidate>
    </ImportEntities>
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--'
curl--位置--请求发布'https://stghilton.taleo.net/enterprise/soap?ServiceName=IntegrationManagementService' \
--标题的内容类型:多部分/相关;start=“”;type=“应用程序/xop+xml”;边界=“uuid:7661941e-06d9-4961-af10-db612c7ffcc4”;start info=“text/xml”'\
--标题的Soapaction:http://www.taleo.com/ws/integration/toolkit/2011/05/management/IntegrationManagementService#submitLargeDocument' \
--标题“接受:text/xml、多部分/相关、text/html、image/gif、image/jpeg、*;q=.2,*/*;q=.2'\
--标题“用户代理:Oracle JAX-WS 2.1.5”\
--标题“传输编码:分块”\
--标题“主机:stghilton.taleo.net”\
--标题“授权:基本UGhlbm9tOj80K2pTSlAz”\
--数据原始'--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
内容Id:
内容类型:应用程序/xop+xml;字符集=utf-8;type=“text/xml”
内容传输编码:二进制
ps_sd_7701
http://www.taleo.com/ws/integration/toolkit/2005/07/action/import
http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4
内容Id:
内容类型:text/xml;字符集=ISO-8859-1
内容传输编码:二进制
test11@mailinator.com
--uuid:7661941e-06d9-4961-af10-db612c7ffcc4--'

有人能帮我一下吗?

从纯技术的角度来看,我能看到的唯一错误是您对多部分结构的处理

更准确地说,您需要跳过每个零件标题与其主体之间的一行(空行),例如更改3行:

Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
内容Id:
内容类型:应用程序/xop+xml;字符集=utf-8;type=“text/xml”
内容传输编码:二进制
至4行:

Content-Id: <rootpart*7661941e-06d9-4961-af10-db612c7ffcc4@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary

<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
内容Id:
内容类型:应用程序/xop+xml;字符集=utf-8;type=“text/xml”
内容传输编码:二进制
在每个部分,例如,此处:

Content-Transfer-Encoding: binary
<ImportEntities>
内容传输编码:二进制

内容传输编码:二进制

在多部分内容中,必须用空行将标题与正文分开。

是否确实使用了自定义内容类型标题?我看到使用了postman的“文本”主体类型,这意味着它可以用Text/plain覆盖您的自定义…Hi@GPI,在这种情况下应该使用什么?你能帮我一下吗为了帮助调试,你能在你的问题中添加邮递员的“代码片段”选项卡(发送按钮的右侧)显示的内容吗?该选项卡将以另一种格式发送请求,例如,
cURL
。添加了邮递员生成的cURL命令@GPIThank you。乍一看,情况基本上还不错。缺少的一件事(但我不知道它是否非常重要)是内容类型的
start
属性,它应该是内容id或XML部分,因此在您的例子中是
”。您还确定服务器端点接受XOP+MTOM吗?