|
From: Enrique G. T. <Enr...@xt...> - 2012-07-02 13:25:41
|
Hello, I have used soapUI and it works very well, but then I have copied the same code for using it and it doesn't work. The server hasn't put any information in the log, just the response I have attached below. How can I know the User-Agent? POST http://intranet/cm/api/soap/mantisconnect.php HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "http://intranet/cm/api/soap/mantisconnect.php/mc_issue_add" Content-Length: 3063 Host: intranet Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) <man:mc_issue_add soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <username xsi:type="xsd:string">enga</username> <password xsi:type="xsd:string">test</password> <issue xsi:type="man:IssueData"> <id xsi:type="xsd:integer">1234567</id> <view_state xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">10</id> <name xsi:type="xsd:string">public</name> </view_state> <last_updated xsi:type="xsd:dateTime">2009-08-05 12:57:28</last_updated> <project xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">42</id> <name xsi:type="xsd:string">Zasca</name> </project> <category xsi:type="xsd:string">Cat2</category> <priority xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">60</id> <name xsi:type="xsd:string">60</name> </priority> <severity xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">50</id> <name xsi:type="xsd:string">50</name> </severity> <status xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">90</id> <name xsi:type="xsd:string">90</name> </status> <reporter xsi:type="man:AccountData"> <id xsi:type="xsd:integer">4</id> <name xsi:type="xsd:string">yuhu</name> <real_name xsi:type="xsd:string">Marijonaso</real_name> <email xsi:type="xsd:string">ma...@xt...</email> </reporter> <summary xsi:type="xsd:string">oye muyayo</summary> <version xsi:type="xsd:string">1.5.0</version> <build xsi:type="xsd:string">1.5.0</build> <platform xsi:type="xsd:string">No se</platform> <os xsi:type="xsd:string">No se</os> <os_build xsi:type="xsd:string">No se</os_build> <reproducibility xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">70</id> <name xsi:type="xsd:string">70</name> </reproducibility> <date_submitted xsi:type="xsd:dateTime">2009-08-05 12:57:28</date_submitted> <sponsorship_total xsi:type="xsd:integer">1</sponsorship_total> <handler xsi:type="man:AccountData"> <id xsi:type="xsd:integer">?</id> <name xsi:type="xsd:string">?</name> <real_name xsi:type="xsd:string">?</real_name> <email xsi:type="xsd:string">?</email> </handler> <projection xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">?</id> <name xsi:type="xsd:string">?</name> </projection> <eta xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">?</id> <name xsi:type="xsd:string">?</name> </eta> <resolution xsi:type="man:ObjectRef"> <id xsi:type="xsd:integer">?</id> <name xsi:type="xsd:string">?</name> </resolution> <fixed_in_version xsi:type="xsd:string">2.0.0</fixed_in_version> <description xsi:type="xsd:string">Hasta la vista baby</description> <steps_to_reproduce xsi:type="xsd:string">?</steps_to_reproduce> <additional_information xsi:type="xsd:string">?</additional_information> <attachments xsi:type="man:AttachmentDataArray" soapenc:arrayType="man:AttachmentData[]"/> <relationships xsi:type="man:RelationshipDataArray" soapenc:arrayType="man:RelationshipData[]"/> <notes xsi:type="man:IssueNoteDataArray" soapenc:arrayType="man:IssueNoteData[]"/> <custom_fields xsi:type="man:CustomFieldValueForIssueDataArray" soapenc:arrayType="man:CustomFieldValueForIssueData[]"/> </issue> </man:mc_issue_add> </soapenv:Body> </soapenv:Envelope> Response **************** HTTP/1.1 500 Internal Server Error Date: Mon, 02 Jul 2012 13:09:48 GMT Server: Apache/2.0.54 (Win32) DAV/2 mod_auth_sspi/1.0.1 SVN/1.5.1 PHP/4.4.8 X-Powered-By: PHP/4.4.8 Status: 500 Internal Server Error X-SOAP-Server: NuSOAP/0.7.3 (1.114) Content Enrique Galduf Tel Software Engineer Requirements Engineering XTRONIC GmbH Blumenstrasse 44 71106 Magstadt office fon +49 (0) 7159 420842 0 fax +49 (0) 7159 420842 102 Enr...@xt... www.xtronic.de Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 Ust-Id-Nr.: DE208048361, Zollnummer 7031483 ___________________________________________ Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the contents of this e-mail is strictly forbidden. ___________________________________________ -----Ursprüngliche Nachricht----- Von: Robert Munteanu [mailto:rob...@gm...] Gesendet: Donnerstag, 28. Juni 2012 15:49 An: Enrique Galduf Tel Cc: man...@li... Betreff: Re: [Mantisbt-soap-dev] (no subject) (Please keep the mailing list in the loop as well) On Thu, Jun 28, 2012 at 4:37 PM, Enrique Galduf Tel <Enr...@xt...> wrote: > I want to use DXL, that is a Extension Language for IBM Doors, (its similar to C), there are no libraries for this language so I decide to try sending directly a HTTP message with the XML inside. Do you think its possible? Yes, it should be . My suggestion is to construct the request with a SOAP testing tool like SoapUI and them when you have the right messages ( check the HTTP headers as well ) POST them using whatever http client you have available in DXL. As I've mentioned before, there's at least the 'SOAPAction' header missing. Robert > > Enrique Galduf Tel > Software Engineer > Requirements Engineering > > XTRONIC GmbH > Blumenstrasse 44 > 71106 Magstadt > office > fon +49 (0) 7159 420842 0 > fax +49 (0) 7159 420842 102 > > Enr...@xt... > www.xtronic.de > > Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula > > Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 > Ust-Id-Nr.: DE208048361, Zollnummer 7031483 > ___________________________________________ > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, > informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. > > This e-mail may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and delete this e-mail. > Any unauthorised copying, disclosure or distribution of the contents of this e-mail is strictly forbidden. > ___________________________________________ > -----Ursprüngliche Nachricht----- > Von: Robert Munteanu [mailto:rob...@gm...] > Gesendet: Donnerstag, 28. Juni 2012 15:35 > An: Enrique Galduf Tel > Cc: man...@li... > Betreff: Re: [Mantisbt-soap-dev] (no subject) > > What programming language do you use? > > On Thu, Jun 28, 2012 at 4:33 PM, Enrique Galduf Tel > <Enr...@xt...> wrote: >> No, which toolkit do you recommend me? Where can I get information about that? >> >> Enrique Galduf Tel >> Software Engineer >> Requirements Engineering >> >> XTRONIC GmbH >> Blumenstrasse 44 >> 71106 Magstadt >> office >> fon +49 (0) 7159 420842 0 >> fax +49 (0) 7159 420842 102 >> >> Enr...@xt... >> www.xtronic.de >> >> Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula >> >> Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 >> Ust-Id-Nr.: DE208048361, Zollnummer 7031483 >> ___________________________________________ >> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. >> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, >> informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. >> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. >> >> This e-mail may contain confidential and/or privileged information. >> If you are not the intended recipient (or have received this e-mail in error) >> please notify the sender immediately and delete this e-mail. >> Any unauthorised copying, disclosure or distribution of the contents of this e-mail is strictly forbidden. >> ___________________________________________ >> -----Ursprüngliche Nachricht----- >> Von: Robert Munteanu [mailto:rob...@gm...] >> Gesendet: Donnerstag, 28. Juni 2012 15:16 >> An: Enrique Galduf Tel >> Cc: Roland Becker; man...@li... >> Betreff: Re: [Mantisbt-soap-dev] (no subject) >> >> What do you use to generate the code? It's (at least) missing a >> SoapAction header, so you're probably not using a SOAP toolkit. >> >> On Thu, Jun 28, 2012 at 2:43 PM, Enrique Galduf Tel >> <Enr...@xt...> wrote: >>> >>> I extract some parts from my apache log file >>> >>> I think we have to look for this error: >>> >>> >>> >>> [Thu Jun 21 14:59:24 2012] [error] [client 192.168.11.48] Attempt to serve directory: C:/Programme/Apache Group/Apache2/htdocs/cm/webservice/ >>> >>> [Thu Jun 21 15:05:17 2012] [error] [client 192.168.11.48] request failed: error reading the headers >>> >>> [Thu Jun 21 15:07:48 2012] [error] [client 192.168.11.48] request failed: error reading the headers >>> >>> [Thu Jun 21 15:09:49 2012] [error] [client 192.168.11.48] Invalid URI in request Content-Length: 337 >>> >>> >>> >>> >>> Enrique Galduf Tel >>> Software Engineer >>> Requirements Engineering >>> >>> XTRONIC GmbH >>> Blumenstrasse 44 >>> 71106 Magstadt >>> office >>> fon +49 (0) 7159 420842 0 >>> fax +49 (0) 7159 420842 102 >>> >>> Enr...@xt... >>> www.xtronic.de >>> >>> Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula >>> >>> Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 >>> Ust-Id-Nr.: DE208048361, Zollnummer 7031483 >>> ___________________________________________ >>> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. >>> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, >>> informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. >>> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. >>> >>> This e-mail may contain confidential and/or privileged information. >>> If you are not the intended recipient (or have received this e-mail in error) >>> please notify the sender immediately and delete this e-mail. >>> Any unauthorised copying, disclosure or distribution of the contents of this e-mail is strictly forbidden. >>> ___________________________________________ >>> -----Ursprüngliche Nachricht----- >>> Von: Roland Becker [mailto:ro...@at...] >>> Gesendet: Donnerstag, 28. Juni 2012 11:09 >>> An: Enrique Galduf Tel; Robert Munteanu >>> Cc: man...@li... >>> Betreff: Re: [Mantisbt-soap-dev] (no subject) >>> >>> PHP/4.4.8 ? >>> Seems to be a quite old installation / Mantis? >>> >>> >>> Robert Munteanu <rob...@gm...> hat am 28. Juni 2012 um 10:59 >>> geschrieben: >>> >>>> Please check your apache logs. >>>> >>>> On Thu, Jun 28, 2012 at 11:57 AM, Enrique Galduf Tel >>>> <Enr...@xt...> wrote: >>>> > Hi Robert, >>>> > thanks for the response. I change the path and I'm still getting the >>>> > following error from the server: >>>> > >>>> > HTTP/1.1 500 Internal Server Error >>>> > Date: Thu, 28 Jun 2012 08:42:16 GMT >>>> > Server: Apache/2.0.54 (Win32) DAV/2 mod_auth_sspi/1.0.1 SVN/1.5.1 PHP/4.4.8 >>>> > X-Powered-By: PHP/4.4.8 >>>> > Status: 500 Internal Server Error >>>> > X-SOAP-Server: NuSOAP/0.7.3 (1.114) >>>> > Content >>>> > >>>> > >>>> > >>>> > >>>> > Enrique Galduf Tel >>>> > Software Engineer >>>> > Requirements Engineering >>>> > >>>> > XTRONIC GmbH >>>> > Blumenstrasse 44 >>>> > 71106 Magstadt >>>> > office >>>> > fon +49 (0) 7159 420842 0 >>>> > fax +49 (0) 7159 420842 102 >>>> > >>>> > Enr...@xt... >>>> > www.xtronic.de >>>> > >>>> > Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula >>>> > >>>> > Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 >>>> > Ust-Id-Nr.: DE208048361, Zollnummer 7031483 >>>> > ___________________________________________ >>>> > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte >>>> > Informationen. >>>> > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich >>>> > erhalten haben, >>>> > informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. >>>> > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht >>>> > gestattet. >>>> > >>>> > This e-mail may contain confidential and/or privileged information. >>>> > If you are not the intended recipient (or have received this e-mail in >>>> > error) >>>> > please notify the sender immediately and delete this e-mail. >>>> > Any unauthorised copying, disclosure or distribution of the contents of this >>>> > e-mail is strictly forbidden. >>>> > ___________________________________________ >>>> > -----Ursprüngliche Nachricht----- >>>> > Von: Robert Munteanu [mailto:rob...@gm...] >>>> > Gesendet: Donnerstag, 28. Juni 2012 09:19 >>>> > An: Enrique Galduf Tel >>>> > Cc: man...@li... >>>> > Betreff: Re: [Mantisbt-soap-dev] (no subject) >>>> > >>>> > Hi Enrique, >>>> > >>>> > On Mon, Jun 25, 2012 at 4:01 PM, Enrique Galduf Tel >>>> > <Enr...@xt...> wrote: >>>> >> Hello, >>>> >> >>>> >> >>>> >> >>>> >> I'm totally new using Mantis Connect and I'm trying to add an issue in >>>> >> Mantis using the following code in http: >>>> >> >>>> >> >>>> >> >>>> >> POST http://intranet/cm/webservice/mantisconnect.php HTTP/1.1 >>>> > >>>> > >>>> > The path to the SOAP API is $ROOT/api/soap/mantisconnect.php , where >>>> > $ROOT is the location where you access Mantis from your browser. >>>> > >>>> > Robert >>>> > >>>> >> >>>> >> Host: 192.168.0.3 >>>> >> >>>> >> Content-Type: application/soap+xml; charset=utf-8 >>>> >> >>>> >> Content-Length: 338 >>>> >> >>>> >> >>>> >> >>>> >> <?xml version="1.0"?> >>>> >> >>>> >> <soap:Envelope xmlns:soap="http://www.w3.org/2001/XMLSchema" >>>> >> soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> >>>> >> >>>> >> <soapenv:Header/> >>>> >> >>>> >> <soapenv:Body> >>>> >> >>>> >> <tns:mc_issue_addRequest> >>>> >> >>>> >> <username>Josua</username> >>>> >> >>>> >> <password>pass</password> >>>> >> >>>> >> <issue></issue> >>>> >> >>>> >> </tns:mc_issue_addRequest> >>>> >> >>>> >> </soapenv:Body> >>>> >> >>>> >> </soap:Envelope> >>>> >> >>>> >> >>>> >> >>>> >> It is possible? It's the code right? >>>> >> >>>> >> >>>> >> >>>> >> Thank you, >>>> >> >>>> >> >>>> >> >>>> >> Enrique >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> Enrique Galduf Tel >>>> >> Software Engineer >>>> >> Requirements Engineering >>>> >> >>>> >> XTRONIC GmbH >>>> >> Blumenstrasse 44 >>>> >> 71106 Magstadt >>>> >> office >>>> >> fon +49 (0) 7159 420842 0 >>>> >> fax +49 (0) 7159 420842 102 >>>> >> >>>> >> Enr...@xt... >>>> >> www.xtronic.de >>>> >> >>>> >> Geschaeftsfuehrung: Daniel Schmid, Martin Schleiermacher, Manfred Famula >>>> >> >>>> >> Sitz der Gesellschaft: Magstadt, Amtsgericht Stuttgart, HRB 244900 >>>> >> Ust-Id-Nr.: DE208048361, Zollnummer 7031483 >>>> >> ___________________________________________ >>>> >> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte >>>> >> Informationen. >>>> >> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich >>>> >> erhalten haben, >>>> >> informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. >>>> >> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist >>>> >> nicht >>>> >> gestattet. >>>> >> >>>> >> This e-mail may contain confidential and/or privileged information. >>>> >> If you are not the intended recipient (or have received this e-mail in >>>> >> error) >>>> >> please notify the sender immediately and delete this e-mail. >>>> >> Any unauthorised copying, disclosure or distribution of the contents of >>>> >> this >>>> >> e-mail is strictly forbidden. >>>> >> ___________________________________________ >>>> >> >>>> >> >>>> >> >>>> >> ------------------------------------------------------------------------------ >>>> >> Live Security Virtual Conference >>>> >> Exclusive live event will cover all the ways today's security and >>>> >> threat landscape has changed and how IT managers can respond. Discussions >>>> >> will include endpoint security, mobile security and the latest in malware >>>> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> >> _______________________________________________ >>>> >> Mantisbt-soap-dev mailing list >>>> >> Man...@li... >>>> >> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Sent from my (old) computer >>>> > >>>> >>>> >>>> >>>> -- >>>> Sent from my (old) computer >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Mantisbt-soap-dev mailing list >>>> Man...@li... >>>> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev >>> >> >> >> >> -- >> Sent from my (old) computer >> > > > > -- > Sent from my (old) computer > -- Sent from my (old) computer |