wcf - Generating Client code using svcutil -


i trying generate client proxy code using svcutil.exe tool. , throwing follwong error.

i using following command.

svcutil /namespace:http://www.starstandard.org/star/5,* /out:starcontract.cs /noconfig sendorderorder.wsdl sendorderordertype.xsd

--------------------output ----------------------

error: there error verifying xml schemas generated during export: 'http://www.starstandard.org/star/5:sendorder' element not declared.

error: cannot import wsdl:porttype detail: exception thrown while running wsdl import extension: system.servicemodel.descripti on.xmlserializermessagecontractimporter error: element 'http://www.starstandard.org/star/5:sendorder' missing. xpath error source: //wsdl:definitions[@targetnamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:porttype[@name='startransportporttypes']

error: cannot import wsdl:binding detail: there error importing wsdl:porttype wsdl:binding dependent on. xpath wsdl:porttype: //wsdl:definitions[@targetnamespace='http://www.starstandards.org/webservice s/2005/10/transport/bindings']/wsdl:porttype[@name='startransportporttypes'] xpath error source: //wsdl:definitions[@targetnamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:binding[@name='startransport']

error: cannot import wsdl:port detail: there error importing wsdl:binding wsdl:port dependent on. xpath wsdl:binding: //wsdl:definitions[@targetnamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:binding[@name='startransport'] xpath error source: //wsdl:definitions[@targetnamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:service[@name='sendorderwebservice']/wsdl:port[@name='sendorderstartransport']

generating files... warning: no code generated. if trying generate client, because metadata documents did not contai n valid contracts or services or because contracts/services discovered exist in /reference assemblies. verify passed metadata documents tool.

warning: if generate data contracts schemas make sure use /datacontrac tonly option.

--------- end of output -----------------

the relative file references looks fine.

when try create same code using wse works fine , generate relate proxy class without errors. not work when using svcutil.exe.

any idea?

i'm not familiar wsdl/xsds referring can't explain specifics of why failing.

however, in view, code generation aspects of .net wsdl , xsd tools have been broken long time. not cope many standard industry conventions (including handling attributegroup constructs, coercing of namespaces on includes, poor handling of nillable elements, , list goes on.

if wsdl/xsd files use import and/or include statements .net going choke. have had number of occasions tools soapui correctly handle wsdl , can generate various artifacts .net unable cope.

some people have had success tool called wscf blue unfortunately have flattened/tidied wsdl/xsd file hand until .net can cope it.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -