« first day  last day (14 days later) » 

12:01 AM
I had a hunch about that, but VS did not complain...so left it...let me try that now..
 
Actually, make sure to have all the instances instanciated
as part of the following command, none of the objects are instanciated:
rep.GetProductSellableResponse.ErrorMessage.code
I spoke to a colleague and the main issue apparently is that svcutil.exe is mostly used for client side generation, not server side
he told me to check this: wscfblue.codeplex.com
might help you if you need to implement other WCFs
 
This is my 1st WCF
 
Usually I create the WCFs from scratch, good exercise tho
Implementing a third party WCF as 1st WCF is not easy that's for sure.
third party WSDL***
 
our client is based in Canada and Canada has just recently implement the Promo Stds templates
all Suppliers now must conform to the same standards there
 
Oh I see
 
12:05 AM
this thing is wrecking my brain for 1 weeks now
www.globalcitizen.ca
 
I am a big fan of RESTful services, I dropped WCF about 2 years ago now
 
I was going the Web API route with this, until client said this is how they have to have it
let me give the above code a try and report back
I changed the WCF code to the following and got the object ref errror
public getProductSellableResponse1 getProductSellable(getProductSellableRequest1 request)
{
getProductSellableResponse1 rep = new getProductSellableResponse1();

rep.GetProductSellableResponse = new GetProductSellableResponse();

rep.GetProductSellableResponse.ErrorMessage.code = 999;
rep.GetProductSellableResponse.ErrorMessage.description = "Working!!!!!! YAAAAAAY!! :)";

return rep;
}
 
Yes, because you need to do the following:
getProductSellableResponse1 rep = new getProductSellableResponse1();
rep.GetProductSellableResponse = new GetProductSellableResponse();
rep.GetProductSellableResponse.ErrorMessage = new ErrorMessage();
Else you'll hit not set to a reference of an object
 
ahhh
 
and when you're done, we have to do another step in order to comply with your clients needs
 
12:12 AM
sure
Wow THANK YOU!!!!!!!
it worked :)
yes, the chaps are going to be very excited tomorrow :)
I feel soo relieved now...I can at least focus on coding now, then having to work on integration
 
Yeah, I can imagine
However...
Since you mentionned it is a canadian standard, you must comply to it
so, I have re-generated the contracts
properly this time... no comments
 
ok
 
And your service contract should be:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace = "http://www.promostandards.org/WSDL/ProductDataService/1.0.0/")]
public interface ProductDataService
{
// CODEGEN: Generating message contract since the operation getProduct is neither RPC nor document wrapped.
[System.ServiceModel.OperationContractAttribute(Action = "getProduct")]
[System.ServiceModel.XmlSerializerFormatAttribute()]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(ApparelSize[]))]
 
class updated accordingly
 
Okay, let's try again, don't forget to update the service
 
12:21 AM
ok will do...let me update the dll
i get this error now..
The message with Action 'http://www.promostandards.org/WSDL/ProductDataService/1.0.0/ProductDataService/‌​getProductSellable' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.
This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
 
Did you refresh the service on the client side?
 
Oh dear :( sorry
ok we all good now :)
so it all started with the Inheritance part
 
One last thing, just to make sure....
can you reput the config:
externalMetadataLocation="http://api.proactiveclothing.com/wsdl/ProductDataServi‌​ce.wsdl"
 
add that in?
 
to make sure you are fully compliant with the wsdl
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" externalMetadataLocation="http://api.proactiveclothing.com/wsdl/ProductDataService.wsdl"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
**<serviceMetadata httpGetEnabled="true" externalMetadataLocation="http://api.proactiveclothing.com/wsdl/ProductDataServi‌​ce.wsdl"/> **
that part
In the service config, my apologies for not precising
 
12:28 AM
I've added that in...this is what my servicemodel looks like now in config
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true">
</serviceHostingEnvironment>

<bindings>
<basicHttpBinding>
<binding name="basicHttpBindingConfig">
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>


<services>
<!-- Note: the service name must match the configuration name for the service implementation. -->
<service name="ProductDataService">
<!-- Add the following endpoint. -->
it's ok....thank you
 
Okay, great
Let me just give you the good svcutil command
 
I'm like over the moon with this :)
 
Here is the proper command:
api.proactiveclothing.com/wsdl/ProductDataService.wsdl /language:C# /out:"C:\Users\IEG-WS02\Desktop\WSDL\IService2.cs" /t:code /serviceContract
apologies...
svcutil.exe api.proactiveclothing.com/wsdl/ProductDataService.wsdl /language:C# /out:"C:\Users\IEG-WS02\Desktop\WSDL\IService2.cs" /t:code /serviceContract
thats' better
you can noticed I have forgotten to put "/t:code" and "/serviceContract"
In case you have other WSDL to integrate with, now you have it
 
so you did the service contracts individually from the data contracts?
 
no, I've redone everything, but just the interface changed
 
12:31 AM
I still have to do the Inventory, Media and Pricing :( still a long way to go,but at least its working now
 
the flag "/serviceContract" is what allowed to generate server side contract instead of client side
well, good luck with that, feel free to reach em if anything
have a great day
 
THANK YOU SO MUCH
YOU HAVE BEEN A GREAT HELP. THANK YOU
 
no problem, my pleasure
 
I will def give you a shout in future
I will put an answer together with all credit to you and post to the question
Have a great day ahead
take care
 
lol, no problem, well I am in Montreal, so it is actually night here hahaha
if anything, here is my email address: s.boulnois@gmail.com
 
12:34 AM
Oh yes...I saw your profile
thought its still early...as out client is still online..
email saved
 
take care
 
you too
cheers
 

« first day  last day (14 days later) »