willemdj / erlsom

XML parser for Erlang
GNU Lesser General Public License v3.0
264 stars 103 forks source link

error: no match of right hand side value {error,[{exception,{error,"unknown tag: html"} #29

Open alawatta opened 9 years ago

alawatta commented 9 years ago

when use erlsom, following error came. {'wsdl:tTypes','wsdl:tExtensibleDocumented'}]} \ exception error: no match of right hand side value {error,[{exception,{error,"unknown tag: html"}}, {stack,[undefined]}, {received,{startElement,[],"html",[],[]}}]}

Same WSDL file work with PHP nusoap lib. Pls help to solve this

willemdj commented 9 years ago

Hi, I would need to see the WSDL (and if relevant the XML) to be able to determine what the problem is. Can you send them to me? (Better still would be to have a minimal example of the problem.)

regards, Willem

On Tue, Jan 6, 2015 at 10:46 AM, alawatta notifications@github.com wrote:

when use erlsom, following error came. {'wsdl:tTypes','wsdl:tExtensibleDocumented'}]} \ exception error: no match of right hand side value {error,[{exception,{error,"unknown tag: html"}}, {stack,[undefined]}, {received,{startElement,[],"html",[],[]}}]}

Same WSDL file work with PHP nusoap lib. Pls help to solve this

— Reply to this email directly or view it on GitHub https://github.com/willemdj/erlsom/issues/29.

alawatta commented 9 years ago

Hi Willem, Tx a lot for your response. I manged to handle that error & now came different error.

{stack,[undefined]},

{received,{startElement,"http://schemas.xmlsoap.org/wsdl/",

      "definitions","wsdl",

      [{attribute,"targetNamespace",[],[],

                  "http://www.huawei.com/bme/cbsinterface/cbs/accountmgr

"}]}}]}

here attached wsdl file too. Br, Shehan

On Sat, Jan 10, 2015 at 6:05 PM, willemdj notifications@github.com wrote:

Hi, I would need to see the WSDL (and if relevant the XML) to be able to determine what the problem is. Can you send them to me? (Better still would be to have a minimal example of the problem.)

regards, Willem

On Tue, Jan 6, 2015 at 10:46 AM, alawatta notifications@github.com wrote:

when use erlsom, following error came. {'wsdl:tTypes','wsdl:tExtensibleDocumented'}]} \ exception error: no match of right hand side value {error,[{exception,{error,"unknown tag: html"}}, {stack,[undefined]}, {received,{startElement,[],"html",[],[]}}]}

Same WSDL file work with PHP nusoap lib. Pls help to solve this

— Reply to this email directly or view it on GitHub https://github.com/willemdj/erlsom/issues/29.

— Reply to this email directly or view it on GitHub https://github.com/willemdj/erlsom/issues/29#issuecomment-69454308.

willemdj commented 9 years ago

Hi Shehan,

I don't see the WSDL?

It is also not clear to me what you are trying to do. What commands are you using exactly? How can I reproduce the error?

Note that a WSDL is something else than an XSD. Normally you need to "compile" an XSD first. But again, it is not clear to me what you are trying to do, so I can only guess.

regards, Willem

alawatta commented 9 years ago

hi Willem, Tx for ure response. here is the command I run. Sorry for mistake. inets:start(). yaws_soap_lib:initModel("CBSInterfaceAccountMgrService?wsdl", [{include_fun, {erlsom_lib, find_xsd}}]).

then above error came.

{stack,[undefined]},

{received,{startElement,"http://schemas.xmlsoap.org/wsdl/",

      "definitions","wsdl",

      [{attribute,"targetNamespace",[],[],

                  "http://www.huawei.com/bme/cbsinterface/cbs/accountmgr

"}]}}]} here attached wsdl file. Br, Shehan

On Wed, Jan 21, 2015 at 11:38 PM, willemdj notifications@github.com wrote:

Hi Shehan,

I don't see the WSDL?

It is also not clear to me what you are trying to do. What commands are you using exactly? How can I reproduce the error?

Note that a WSDL is something else than an XSD. Normally you need to "compile" an XSD first. But again, it is not clear to me what you are trying to do, so I can only guess.

regards, Willem

— Reply to this email directly or view it on GitHub https://github.com/willemdj/erlsom/issues/29#issuecomment-70889225.

willemdj commented 9 years ago

Hi Shehan,

this is more likely to be a problem related to yaws_soap. But I can look into it. I didn't find the WSDL, probably gitHub doesn allow attachments. Can you send it to me directly? You can find my email address in the source files of erlsom.

regards, Willem

alawatta commented 9 years ago

Dear Willeam, tx a lot for ure kind response. I send WSDL file to ure private email. Tx, Shehan

On Fri, Jan 23, 2015 at 4:55 PM, willemdj notifications@github.com wrote:

Hi Shehan,

this is more likely to be a problem related to yaws_soap. But I can look into it. I didn't find the WSDL, probably gitHub doesn allow attachments. Can you send it to me directly? You can find my email address in the source files of erlsom.

regards, Willem

— Reply to this email directly or view it on GitHub https://github.com/willemdj/erlsom/issues/29#issuecomment-71180751.

willemdj commented 9 years ago

Hi,

I think that the problem is that this is a soap 1.2 WSDL. I haven't investigated it in detail, but you could try to use yaws_soap12_lib instead of yaws_soap_lib.

Regards, Willem