All,
   I am having what seems to be a unique problem when an Axis client contants a GSOAP server sending  a DIME attachment.  The GSOAP client to GSOAP server works fine.  Here is the request from Axis to GSOAP.
 

POST / HTTP/1.0?

Content-Type: application/dime?
Accept: application/soap+xml, application/dime, multipart/related, text/*?
User-Agent: Axis/1.0?
Host: localhost?
Cache-Control: no-cache?
Pragma: no-cache?
SOAPAction: ""?
Content-Length: 4572??? ???)?)????uuid:714C6C40-4531-442E-A498-3AC614200295???http://schemas.xmlsoap.org/soap/envelope/???<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Header>

<ns1:user xsi:type="xsd:string" xmlns:ns1="urn:TemplateHeader">bbuch</ns1:user>

</soapenv:Header>

<soapenv:Body>

<ns2:saveDefinition soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:TemplateService">

<identity href=""/>

<aTemplate href=""/>

</ns2:saveDefinition>

<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:TemplateIdentity" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="urn:TemplateTypes">

<functionalArea href=""/>

<name xsi:type="xsd:string">Java</name>

<shortDescription xsi:type="xsd:string">Impressed if this works the first time.</shortDescription>

<detailedDescription xsi:type="xsd:string" xsi:nil="true"/>

<editable xsi:type="xsd:boolean">true</editable>

<documentGroup xsi:type="xsd:string" xsi:nil="true"/>

<dataTable xsi:type="xsd:string" xsi:nil="true"/>

<shareable xsi:type="xsd:boolean">true</shareable>

<id xsi:type="xsd:string" xsi:nil="true"/>

<ignoreUnknownFields xsi:type="xsd:boolean">true</ignoreUnknownFields>

</multiRef>

<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:FunctionalArea" xmlns:ns4="urn:FormGenerationService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">LEAD</multiRef>

</soapenv:Body>

</soapenv:Envelope>???? ?????B2ECCBB0164EC4A3C9E53F25A6DA2FAEapplication/rtf?{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f55\froman\fcharset238\fprq2 Times New Roman CE;}{\f56\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f58\froman\fcharset161\fprq2 Times New Roman Greek;}{\f59\froman\fcharset162\fprq2 Times New Roman Tur;}{\f60\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f61\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f62\froman\fcharset186\fprq2 Times New Roman Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 Normal;}{\*\cs10 \additive Default Paragraph Font;}}{\info{\title Hello, [vst], this is a sample document made on [dmy]}{\author svickers}{\operator svickers}{\creatim\yr2003\mo7\dy4\hr17\min27}{\revtim\yr2003\mo7\dy4\hr17\min29}{\version1}{\edmins2}{\nofpages1}{\nofwords0}{\nofchars0}{\*\company iTeamSolutions, llc}{\nofcharsws0}{\vern8247}}\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1800\dgvorigin1440\dghshow1\dgvshow1\jexpand\viewkind1\viewscale114\viewzk2\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule \fet0\sectd \linex0\endnhere\sectlinegrid360\sectdefaultcl {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang??

{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {Hello, ??

[vst], this is a sample document made on [dmy].??

\par ??

\par Had this been a real document, there\rquote d be cool content!??

\par ??

\par The Management??

\par }}?


And here is the response:

HTTP/1.1 500 Internal Server Error?

Server: gSOAP/2.2?

Content-Type: text/xml; charset=utf-8?

Content-Length: 1050?

Connection: close?

?

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:fgsapi="urn:FormGenerationService" xmlns:h="urn:TemplateHeader" xmlns:t="urn:TemplateTypes" xmlns:fgsapi-t="urn:TemplateService">

<SOAP-ENV:Header>

<h:user xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">bbuch</h:user>

</SOAP-ENV:Header>

<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Server</faultcode>

<faultstring>no template contents to persist</faultstring>

<detail>&lt;SOAPException&gt;&lt;message&gt;no template contents to persist&lt;/message&gt;&lt;type&gt;N5iteam3net5gsoap15SOAPClientFaultE&lt;/type&gt;&lt;saveDefinition&gt;&lt;message&gt;Unable to complete fgsapi_t__saveDefinition request&lt;/message&gt;&lt;/saveDefinition&gt;</detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

The bolded portion of the request is where the problem is.  There is no control or separator character between the href id and the mime-type of the DIME contents.  In the GSOAP client, that control or separator character exists.  What could cause such an issue?  I have used the code from the EchoAttachements example from the axis site.  Any Help would be greatly appreciated.

 

 

Reply via email to