c# - How to create an otrs ticket using a soap request .Net -
i have created solution. added wsdl file. keeps on popping following error "length required".
i tried above code in post (, seems not working. specify operation name here?
-- anand
before getting work in java c# .net etc need soap xml correct.
the operation name added tag in soap body element. example operation name createmyotrsticket specified in otrs ui web service. soap request sent should like this:
<?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/xmlschema" soap:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <createmyotrsticket xmlns="ws"> <userlogin>myusername</userlogin> <password>mypassword</password> <queue>'some queue name'</queue> <state>'some state name'</state> <priority>1</priority> <!-- ...etc.. --> <article> <subject>some subject</subject> <body>some body</body> <contenttype>text/plain; charset=utf8</contenttype> </article> </createmyotrsticket > </soap:body> </soap:envelope>
see api elements require , optional ticketcreate here
the soap message should sent /nph-genericinterface.pl/webservice/createticketws createticketws name of web service. note attribute xmlns="ws" refers namespace specify in "network transport" config locatred in genericinterface web service management. hope helps you. sorry might bit confusing new soap , otrs.
Comments
Post a Comment