LaborService Update

I dont think we're using some enhanced web services product. We're running Epicor 9 WebServices, so whatever the plain jane default is. 

Epicor is picky, but in my experience with using the other web services, GetNew____ typically gives you a full default dataset that you can manipulate. It does that with LaborService too but I must be missing something.

It's not as simple as GetNewTimeWeeklyView() and then Update() this time for whatever reason. It just puts in the basic time info and no LaborDtl is generated.
I am at my wits end after trying to get this to work for almost a week!

I'd be really grateful if someone could show me what XML I need to pass to Update() on LaborService.

I have data like this:

Employee: 50
Date Worked: 2014-02-24
Hours Worked: 8.25
Job: 130052
Asm: 0
Opr: 20

and I need to pass that through an Update() method on LaborService to job cost their time. (I'm passing this information from our Intranet portal and have done many web services calls in the past, I just cant seem to get LaborService->Update() to work right! The response I get back from it never includes the LaborDtl or TimeWeeklyView I'm putting in. 
Anyone have an idea about this?

I just need to be able to input Time and Expense costed to a job/asm/opr with the LaborService web service.

------------------------------------------

I am at my wits end after trying to get this to work for almost a week!

I'd be really grateful if someone could show me what XML I need to pass to Update() on LaborService.

I have data like this:

Employee: 50
Date Worked: 2014-02-24
Hours Worked: 8.25
Job: 130052
Asm: 0
Opr: 20

and I need to pass that through an Update() method on LaborService to job cost their time. (I'm passing this information from our Intranet portal and have done many web services calls in the past, I just cant seem to get LaborService->Update() to work right! The response I get back from it never includes the LaborDtl or TimeWeeklyView I'm putting in. 
You do not need to pass any XML, depending on your version of Epicor you either have WSE Web Services or WCF (Which do you have?)
Based on that version you need to implement the appropriate calls based on the WSDL from the Web Services in .NET

It then translates the objects into the appropriate SOAP protocol (or WCF) you should not have to generate or create ANY XML by hand.



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Mon, Mar 3, 2014 at 8:55 AM, <ralmon@...> wrote:

 
<div>
  
  
  <p></p><div><span style="color:rgb(63,63,63);">Anyone have an idea about this?</span></div><div><span style="color:rgb(63,63,63);"><br></span></div><div><span style="color:rgb(63,63,63);">I just need to be able to input Time and Expense costed to a job/asm/opr with the LaborService web service.</span></div>

------------------------------------------

I am at my wits end after trying to get this to work for almost a week!

I'd be really grateful if someone could show me what XML I need to pass to Update() on LaborService.


I have data like this:

Employee: 50

Date Worked: 2014-02-24

Hours Worked: 8.25
Job: 130052
Asm: 0
Opr: 20


and I need to pass that through an Update() method on LaborService to job cost their time. (I'm passing this information from our Intranet portal and have done many web services calls in the past, I just cant seem to get LaborService->Update() to work right! The response I get back from it never includes the LaborDtl or TimeWeeklyView I'm putting in. 

</div>
 


<div style="color:#fff;min-height:0;"></div>

I have Web Services.
I'm calling GetNewTimeWeeklyView(), followed by DefaultOprSeq(), followed by Update()

Here's the (sorry, PHP) object I'm sending in my request:

And here's the Response I get back from Update() that just totally ignores the TimeWeeklyView I pass in.


I realized the EmployeeNum didn't match. I fixed that, but the Update method still does not return a LaborDtl or TimeWeeklyView in the Reponse.


AH your problem is in the word PHP <-- LoL 

Sorry couldn't help myself these are either WSE Enhanced Services, or WCF Web Services neither of which play with PHP nicely specially with all the crap Epicor adds to their service calls. Not much input I can give you in that aspect. Can it be done? Sure I've done it/seen it done before but its a bit of a nightmare. Usually going the .NET Route is the way to go, sorry I can't be more help.


If you can determine whether you have WCF or WSE Webservices it might help a bit in pointing you in the right direction


Jose C Gomez
Software Engineer



T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Mon, Mar 3, 2014 at 10:23 AM, <ralmon@...> wrote:

 
<div>
  
  
  <p>I realized the EmployeeNum didn&#39;t match. I fixed that, but the Update method still does not return a LaborDtl or TimeWeeklyView in the Reponse.</p><div><br></div><div><br></div><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

SOAP is SOAP no matter what your client language is, imo.

Maybe you could help me another way. Could you show me the correct sequence of calls with the ICE-WS-Tester utility epicor provides to insert a TimeWeeklyView entry for an employee? Preferably with the bare minimum amount of filled fields.

Yeah SOAP is SOAP but if you are using WSE Epicor uses the Micrsoft WSE Enhancements that may cause issues on your side. Also Epicor is very picky and it doesn't like it when you send it an incomplete data-set (so using the minimum number of fields may be out of the question)
I don't have Time Management so I can't provide you with the sequence you requested perhaps someone else can help with that portion. 

Thanks!

Jose C Gomez
Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Mon, Mar 3, 2014 at 11:34 AM, <ralmon@...> wrote:

 
<div>
  
  
  <p>SOAP is SOAP no matter what your client language is, imo.</p><div><br></div><div>Maybe you could help me another way. Could you show me the correct sequence of calls with the ICE-WS-Tester utility epicor provides to insert a TimeWeeklyView entry for an employee? Preferably with the bare minimum amount of filled fields.</div>

</div>
 


<div style="color:#fff;min-height:0;"></div>