can't generate proxy

Topics: General Discussion Forum, July and December Releases Forum, Service Factory Modeling Edition Forum
Jun 26, 2009 at 2:25 PM

Hi,  I'm going through the 15 Minute Wlkthrough and at the end, I can't generate the MaterialMgmtProxy or the VendorGatewayProxy.

I'm getting this error (below). Would anyone be able to help point me in the right direction? thank you.

Metadata contains a reference that cannot be resolved:

'http://localhost:2328/BYA.Mfg.SCM.Host/MaterialMgmt.svc/mex'.

Content Type application/soap+xml; charset=utf-8 was not supported by service

http://localhost:2328/BYA.Mfg.SCM.Host/MaterialMgmt.svc/mex. The client and service bindings may be mismatched.

The remote server returned an error: (415) Unsupported Media Type.

Jun 26, 2009 at 6:37 PM

Never mind.  I figured it out. I had to go and manually add <serviceMetadata> element to the service behavior configuration. Don't know why if everything else is generated, that one element wasn't.

Developer
Jun 26, 2009 at 7:36 PM

Can you call the http://localhost:2328/BYA.Mfg.SCM.Host/MaterialMgmt.svc alone and get back a response? of so you can try adding ?WSDL and check if you can get the WSDL metadata. Otherwise you may need to enable the MEX endpoint in your service web.config file.

Another option may be to check if you have the ASP.NET extensions already set in IIS.

Jun 26, 2009 at 7:42 PM

Hi, Thank you very much for responding.  I did call the service with the ?wsdl and discovered that I had to add an element to the service behavior

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

<

</font></font><font size="2" color="#0000ff">

 

</font>

serviceMetadata httpGetEnabled="true"/>. 

Thank you again.