Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Getting Closer With Soap

Guest
Posted: Wed Jan 31, 2007 9:12 pm Reply with quote
Guest
I have solved almost all of the below problems ... except the wsdl.xmd
and the cvs one. Now when I use the yaws_soap_lib:call/4 function it
calls my handler properly and then I get this error:

=ERROR REPORT==== 31-Jan-2007::16:04:37 ===
yaws_soap_srv(214): Srv Error: "Error writing XML: \"Something wrong
with the Model\""

=ERROR REPORT==== 31-Jan-2007::16:04:37 ===
{yaws_rpc,168,
         {my_soap,handler,
                  "<SOAP-ENV:Envelope
xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Server
error</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>"}}

and it just returns a soap envelope with a fault in it. I am guessing
that this has something to do with my wsdl file or the fact that I am
missing the wsdl.xsd file.

Your help is greatly aprichiated,

Bram

On Jan 31, 2007 01:05 PM, Bram Cymet <bcymet@cbnco.com> wrote:

>Bram Cymet wrote:
>>Bram Cymet wrote:
>>
>>>Hello,
>>>
>>>I am trying to get SOAP working in Yaws 1.66. I have a WSDL file in
>>>attempting to parse the file in yaws it complains that there are
>>>unknown
>>>tags even even for tags like <element> I even tried using the WSDL
>>>file
>>>that is used in the intro to soap in yaws example on the website and
>>>got
>>>the same results.
>>>
>>
>>Have you installed erlsom?
>>
>>If you follow the example, where does it bail out?
>>
>>Also, I've made a couple of small (but crucial) fixes
>>that are in the CVS. For example, in the docs, info is
>>missing about how to initialize the SOAP server:
>>
>>yaws_soap_srv:setup({HandlerMod, handler}, PathToWsdlFileAsString).
>>
>>Cheers, Tobbe
>>
>>
>>That got me a little further now when I got to call the funtion I get
>>one of two errors either:
>
>>>Do you mean the call to yaws_soap_srv:setup/2 ?
>
>I got these error when I used yaws_soap_lib:call/4.
>
>>>Does yaws_soap_lib:initModel(UrlToWsdlFile) return a #wsdl record ?
>
>initModel does return a #wsdl record, however when I call
>yaws_soap_srv:setup/2 it exits with a noproc error. I am thinking this
>is where my problem is but I am not sure how to fix it.
>
>>>If not then it may be (the known problem) that the files:
>>>envelope.xsd, soap.xsd and wsdl.xsd are not installed properly
>>>in the Yaws priv dir. To work around this , just copy them to the
>>>dir.
>>>(This installation procedure still need to be fixed in CVS.)
>
>I was able to find envelope.xsd and soap.xsd on the web but I was able
>to find wsdl.xsd is there a place where I can find the file?
>
>On a different note: the lastest version of Yaws is in the repository
>yaws-cvs correct? I was only able to check out the repository called
>yaws. When I try to checkout yaws-cvs it keeps saying that the
>repository dosn't exist.
>
>--Tobbe
>
>
>>{error,{not_supported_scheme,file}}
>>
>>or
>>
>>{error,{decoding,"Malformed: Unexpected end of text in document"}}
>>
>>I am not sure what either of these errors mean. Is it a problem with
>>my
>>WSDL file? Maybe something with how I have defined the handler, or
>>something else?
>>
>>Thanks,
>>
>>Bram
>>
>>
>>
>

>>>>>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to
>>share
>>your
>>opinions on IT & business topics through brief surveys - and earn cash
>

>>>>>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Erlyaws-list mailing list
>>Erlyaws-list@li...
>>https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum